REX help

Post Reply
barry.marcus
Posts: 288
Joined: Thu Nov 16, 2006 1:05 pm

REX help

Post 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
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

REX help

Post by John »

It looks like you forgot the = after the single character terms. Is ">>\*=[^\space*]=~=" and ">>~=[^\space]*\*=" what you want?
John Turnbull
Thunderstone Software
barry.marcus
Posts: 288
Joined: Thu Nov 16, 2006 1:05 pm

REX help

Post by barry.marcus »

Thanks, that works
Post Reply