Page 1 of 1

REX help

Posted: Tue Oct 06, 2009 6:44 pm
by barry.marcus
I want to match whenever a word (or rather, a string that contains no white space) contains both an asterisk (*) and a tilde (~). I tried the following as my REX expression, but it doesn't seem to tdo the trick:

<$srchStr="[^\space]*\*[^\space]*~" "[^\space]*~[^\space]*\*">
<rex ROW $srchStr $inString>

etc...

Thanks in advance for the help once again

REX help

Posted: Wed Oct 07, 2009 10:33 am
by John
It looks like you forgot the = after the single character terms. Is ">>\*=[^\space*]=~=" and ">>~=[^\space]*\*=" what you want?

REX help

Posted: Wed Oct 07, 2009 12:00 pm
by barry.marcus
Thanks, that works