T
Tom.E.Ward
I need to extract serial numbers from multiple text files. I have an
expression that works fairly well, but the problem is some of the
serial numbers are enclosed within quotes (both single and double) and
I can't figure out a good way to get rid of the closing quote. The
expression of have now is:
/($matchString\s*[\:\=\-]\s*[\'\"]?)(([\w]+$)|(([\w]+)([^\w])))/
($matchString contains {"serial number", "sn", "s/n", "serial num",
etc.}
All the quotes are because I use $2 to extract the actual number. Any
help is appreciated.
expression that works fairly well, but the problem is some of the
serial numbers are enclosed within quotes (both single and double) and
I can't figure out a good way to get rid of the closing quote. The
expression of have now is:
/($matchString\s*[\:\=\-]\s*[\'\"]?)(([\w]+$)|(([\w]+)([^\w])))/
($matchString contains {"serial number", "sn", "s/n", "serial num",
etc.}
All the quotes are because I use $2 to extract the actual number. Any
help is appreciated.