REX variable

Post Reply
sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

REX variable

Post 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 ________________).
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

REX variable

Post by mark »

Look closely at $mytext. Does it have interleaved matches? Can you supply an example $mytext that demonstrates the problem?
Post Reply