REX in web script, and "$"

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

REX in web script, and "$"

Post by Thunderstone »



I'm having a problem with REX.

<$string = "Thanks. Help This Poor Soul. Thanks.">
<rex "Thanks\.$" $string>

It returns nothing.

Of course, if I do
<rex "Thanks" $string>

Results come up with a match. I've tried several
different examples each using the "$" (end of line)
matching operator but to no avail.

Any tips?



____________________________________________________________
Better than free email: shared calendar, files, and more...
Get your 'What-U-Seek Briefcase' at http://www.whatuseek.com






User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

REX in web script, and "$"

Post by Thunderstone »




$ equates to LF or CRLF (\x0a or \0d\0a) and not end of string.

try the NULL anchor : <rex "Thanks\.=>>=" $string>


Post Reply