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:
More than one db with the same namn (was: WC2f3) (1997)
searching multiple databases (1997)
Email Formatting (1998)
Editing HTML Pages w/WCAT (1998)
SFTP (2004)
Running 2 two WebCatalog.acgi's (1996)
Re:redirect from the errorsMessages.db entry (1997)
[WebDNA] agree? --> [url] broken inside [redirect], on a square-bracket-style include, included from a XML-style page (2009)
test don't read (1998)
Big Databases (1997)
Multiple catalog databases and showcart (1997)
dates and hex formatting (1997)
upgrading (1997)
Re:Copyright ? (1997)
search for non-unique question (2001)
PIXO support (1997)
pull downs (1997)
Re:What file? (1997)
Draft Manual, Tutorial, and more (1997)
Resume Catalog ? (1997)