---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listI 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:-------------------------------------------=-----------------------------------------------------------------------------------------------------------------------------------------=--------------------------------------------=From: =Govinda <govinda.webdnatalk@gmail.com<=/a>> Subject: Re: [WebDNA] GREP =problem
Date: 2011-04-21 11:53:44 AM =EDT
To: WebDNA talk <talk@webdna.us>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--------------------------=--------------------------------------------------------------------------=---------------------------------------------------------------=-------------------------------------------------------------.To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
|
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listI 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:-------------------------------------------=-----------------------------------------------------------------------------------------------------------------------------------------=--------------------------------------------=From: =Govinda <govinda.webdnatalk@gmail.com<=/a>> Subject: Re: [WebDNA] GREP =problem
Date: 2011-04-21 11:53:44 AM =EDT
To: WebDNA talk <talk@webdna.us>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--------------------------=--------------------------------------------------------------------------=---------------------------------------------------------------=-------------------------------------------------------------.To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...