Page 1 of 1

REX variable

Posted: Thu Feb 20, 2003 2:49 pm
by sourceuno
I'm trying to use REX to retrieve a piece of text up to a delimeter marking the end of text:

<$bodyends =
">>>\P=!________________*\F________________"
">>>\P=!Report*\FReport">
<rex $bodyends $mytext>

I have text that has the 1st value in $bodyends (________________) but the $ret from rex contains the whole piece of text including the delimeter. When I remove the last value ('Report') from $bodyends, the rex returns the correct value (anything up to ________________).

REX variable

Posted: Thu Feb 20, 2003 3:45 pm
by mark
Look closely at $mytext. Does it have interleaved matches? Can you supply an example $mytext that demonstrates the problem?