-
sferda1
- Posts: 1
- Joined: Tue Oct 02, 2007 1:03 am
Post
by sferda1 »
How would I sandr for the string "$200.00" when the $200.00 part comes from a variable?
<sandr $theprice "" $thebigstring>
It would seem that the $ messes things up.
Steve
-
mark
- Site Admin
- Posts: 5519
- Joined: Tue Apr 25, 2000 6:56 pm
Post
by mark »
$ means "\x0a" to rex/sandr. You need to escape it.
<$rexchars="[[\\=+*?{.>!\^$$]"><!-- chars special to rex exprs -->
<sandr $rexchars "\\\1" $theprice>
<sandr $ret "" $thebigstring>