05-03-2013 04:50 PM
Hi Nathand,
The characters that I want to match have from 1 to 4 characters prior to "XXX" and it could be a space in between as these examples:
LXXX
AAXXX
CECUXXX
SN XXX (space between SN and XXX)
They never start immediately after "<" as shown on these examples:
<TTT BYTE0x0000 ZZXXX CECUXXX AAXXX LXXX or <AX SN XXX V123.12[ZZ1]
In the first example string, I need to match all 4 occurrences. In the second one, only "SN XXX". I need to return them in one string. Each of these strings are complete samples as shown above. Some short ones and some long ones as the one shown above. It may be 1000 of these strings and each of them represents a line in a file.
Thanks,
frn
05-03-2013 05:12 PM
Again, spend some time reading about regular expressions. See if you can get it working on your own, and post if you get stuck. I do not think this problem requires a particularly complicated expression. I recommend using Match Regular Expression.
05-06-2013 05:54 PM
Hi Nathand,
No problem, I will read more about regular expression to get proficient on this. Thanks for your help.