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:
format problem on NT? (1997)
OH CRAP!!!!!- Template not found error!!! (1999)
OT: Connecting Sprout and WebDNA (2008)
WebCat2.0 [format thousands .0f] no go (1997)
Non-WebDNA Sites Reporting Errors When WebDNA Isn't Running (2006)
Bug - 4.5 (2002)
Banners and sort of random display (1997)
3RD POST Character limit in [Search]? (1998)
Database Sizes (2000)
Forms Search Questions (1997)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
ShowNext truncating passed variable?? (1997)
Multiple fields on 1 input (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Getting Emailer to send mail (1997)
Press Release hit the NewsWire!!! (1997)
WebDNA on Intel Mac? (2006)
Encrypt/Decrypt (2007)
multi-paragraph fields (1997)
Grep Question - SOLVED (2003)