Re: [WebDNA] Grep
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 103150
interpreted = N
texte = I had someone on one of our hosted servers reported that he had to use 2 statements to get this to work.[grep search=26&replace=&][grep search=%&replace=]This method could be problematic if your input has numeric values, but knowing the problem is 3/4's the battle.I think it has to do with how webdna is seeing the %26, it may see it as and actual & symbol and therefore skip to replace nothing, reading it more literally like this:[grep search=&&replace=&]. I could be wrong but not likely ;)It would be better, if webdna worked with a " or ' and found the contents within as opposed to no starting/stopping point. ie[grep search="%26"&replace="&"] all quotes within quotes would have to be escaped ie \" is to search for a quote.On Aug 5, 2009, at 12:06 PM, Ki Song - Knifecenter.com wrote:> We want to do this:> search for %26 and replace with &> I tried this:>> [grep search=%26&replace=&]search %26 replace[/grep]>> but it didn't work.>> Any ideas?>> -----------> Ki Song
Associated Messages, from the most recent to the oldest:
I had someone on one of our hosted servers reported that he had to use 2 statements to get this to work.[grep search=26&replace=&][grep search=%&replace=]This method could be problematic if your input has numeric values, but knowing the problem is 3/4's the battle.I think it has to do with how webdna is seeing the %26, it may see it as and actual & symbol and therefore skip to replace nothing, reading it more literally like this:[grep search=&&replace=&]. I could be wrong but not likely ;)It would be better, if webdna worked with a " or ' and found the contents within as opposed to no starting/stopping point. ie[grep search="%26"&replace="&"] all quotes within quotes would have to be escaped ie \" is to search for a quote.On Aug 5, 2009, at 12:06 PM, Ki Song - Knifecenter.com wrote:> We want to do this:> search for %26 and replace with &> I tried this:>> [grep search=%26&replace=&]search %26 replace[/grep]>> but it didn't work.>> Any ideas?>> -----------> Ki Song
Bob Minor
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
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...
Related Readings:
WebDNA performance comparisons? (2004)
[BULK] [WebDNA] Are your sandbox prefs broken? (If not, are you vulnerable to formvar hacks?) (2011)
Fwd: more ! testing (1997)
Re:quit command on NT (1997)
[WebDNA] Bug in [thisurlplusget] on v7 (2011)
Search design (1997)
Re:Emailer Set Up (1997)
Javascript & Search Results (1998)
[WebDNA] possible bug? (db field named [width]) (2012)
Separate SSL Server (1997)
Please.. copies of Digest for 7/29 and 7/30? (1997)
An easy one (1999)
Emailer file formats (1998)
no [search] with NT (1997)
Math Function (1997)
searchable list archive (1997)
[OT] Ratings comparison? (2003)
Emailer setup (1997)
Looking for 5 to 12 shops with 3 URLs & statements (1997)
WebCat2b15MacPlugin - showing [math] (1997)