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:
hiding hyperlink info in URL field (1999)
FM 4.1 and Webcat? (1998)
Email notification to one of multiple vendors ? (1997)
RE: E-mailer error codes (1997)
[WebDNA] v7 success story (2012)
NT License trade for Mac (2000)
WebCat2 - many [carts] on one template page? (1997)
Another question (1997)
WebCatalog (1999)
Updating Prices in Online Database (1999)
emailer settings and control questions (1997)
summ=T (2003)
OT: BulkRegister.com (2002)
different show next (1997)
How to find 100 most recent additions. (1997)
Looking for a host (1997)
Nitro plugin? (1998)
& not allowed in db by definition? (1999)
Replacefounditems (2003)
b18 problem on NT 4.0 (1997)