Folks,
I need to filter the following string from a file:
P9PF-JKUK-KLJI-KLNH-BHFT-MKNB-P (the string appears by itself on a line)
I'm using the following regex: if (/^\w{4}\-/) that does work but it needs fine tuning because I sometimes pick up garbage like the following:
font-family:Arial'><o
> </o
></span></font></p>
MIME-Version: 1.09133
I’m trying to use a regex that will find a string containing 4 alphanumeric characters followed by a dash '-' then 4 more alphanumeric characters etc. Can anyone help me?
thx.
I need to filter the following string from a file:
P9PF-JKUK-KLJI-KLNH-BHFT-MKNB-P (the string appears by itself on a line)
I'm using the following regex: if (/^\w{4}\-/) that does work but it needs fine tuning because I sometimes pick up garbage like the following:
font-family:Arial'><o
MIME-Version: 1.09133
I’m trying to use a regex that will find a string containing 4 alphanumeric characters followed by a dash '-' then 4 more alphanumeric characters etc. Can anyone help me?
thx.