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