I found this from an old =note:
It seems in webdna's grep.. that the "+" char can =go anywhere that makes sense *except* at the end of the Character Class =(which causes the whole script to fail) =(reason??).
from =here:
-------------------------------------------=---------------------------------------------------------------------
--------------------------------------------------------------------=--------------------------------------------
Subject: Re: [WebDNA] GREP =problem
Date: 2011-04-21 11:53:44 AM =EDT
Hi Stuart
I got this to work =for =you:
--------------------------------------------------------------=--------------------------
[text]incomingString=3Dabcdefghijklmnopqrstu=vwxyz~!@#$%^&*()_+`-=3D{}|[]\:";'<>?,./
1234567890ABCDE=FGHIJKLMNOPQRSTUVWXYZ[/text]
[text]cleanedString=3D[grep =search=3D
[url][^a-zA-Z0-9_+-][/URL]&replace=3D][incomingString][/grep]=[/text]
incomingString=3D[incomingString]<br/>
cleanedStri=ng=3D[cleanedString]<br/>
---------------------------------------=-------------------------------------------------
It seems in =webdna's grep.. that the "+" char can go anywhere that makes sense =*except* at the end of the Character Class (which causes the whole =script to fail) (reason??).
Also if I did not wrap the =search string with
[url], then that also failed in the sense that the + =was not treated as a literal "+".
(Lucky us in this case we did not =need the "+" to behave as a quantifier char, which may have opened =up another can of =worms.)
-G
--------------------------=--------------------------------------------------------------------------=------------
---------------------------------------------------=-------------------------------------------------------------