Re: grep matching
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 47893
interpreted = N
texte = %5B (open square bracket) works, but %5D (close square bracket) doesn't work inside a character list.I tried the following:[grep search=[%5B]&replace=#]abc[def]ghi[/grep]results: abc#def]ghi- Success[grep search=[%5B%5D]&replace=#]abc[def]ghi[/grep]results: abc[def]ghi- Failure[grep search=%5B&replace=#]abc[def]ghi[/grep]Totally empty result page- Failure[grep search=\%5B&replace=#]abc[def]ghi[/grep]results: abc#def]ghi- Success[grep search=%5D&replace=#]abc[def]ghi[/grep]results: abc[def#ghi- Success[grep search=\%5D&replace=#]abc[def]ghi[/grep]results: abc[def#ghi- SuccessIt looks to me like WebDNA is incorrectly parsing the URL-encoded square brackets in some cases.For what I was trying to do - find any character except a closing square bracket - there appears to be no direct way to do it. I had similar problems the other day trying to GREP search for %0A characters within a character list. In both cases, the workaround was to first replace the offending character with a simple substitution for a character that would work in the character list.- brianIt looks to me like WebDNA's parser is treating theOn Wednesday, February 19, 2003, at 12:14 PM, Rob Marquardt wrote:> on 2/19/03 12:59 PM, Brian Fries at webdna@brainscansoftware.com so > noted...>>> I tried everything I could think of to be able to search for an end>> square bracket within a character list (delimited by [] in grep), but>> it will not work. I can search for the character by itself, and I can>> make it work in a character list in BBEdit, but I can't make it work >> in>> WebDNA.>> I've done [unurl]%5B[/unurl] before. It's definitely voodoo getting > them to> work.>>> Rob Marquardt> Designer/Resident Wirehead> Toast Design>> 800 Washington Avenue North> Minneapolis MN 55401> 612.330.9863 v> 612.321.9424 f> www.toastdesign.com>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
%5B (open square bracket) works, but %5D (close square bracket) doesn't work inside a character list.I tried the following:[grep search=[%5B]&replace=#]abc[def]ghi[/grep]results: abc#def]ghi- Success[grep search=[%5B%5D]&replace=#]abc[def]ghi[/grep]results: abc[def]ghi- Failure[grep search=%5B&replace=#]abc[def]ghi[/grep]Totally empty result page- Failure[grep search=\%5B&replace=#]abc[def]ghi[/grep]results: abc#def]ghi- Success[grep search=%5D&replace=#]abc[def]ghi[/grep]results: abc[def#ghi- Success[grep search=\%5D&replace=#]abc[def]ghi[/grep]results: abc[def#ghi- SuccessIt looks to me like WebDNA is incorrectly parsing the URL-encoded square brackets in some cases.For what I was trying to do - find any character except a closing square bracket - there appears to be no direct way to do it. I had similar problems the other day trying to GREP search for %0A characters within a character list. In both cases, the workaround was to first replace the offending character with a simple substitution for a character that would work in the character list.- brianIt looks to me like WebDNA's parser is treating theOn Wednesday, February 19, 2003, at 12:14 PM, Rob Marquardt wrote:> on 2/19/03 12:59 PM, Brian Fries at webdna@brainscansoftware.com so > noted...>>> I tried everything I could think of to be able to search for an end>> square bracket within a character list (delimited by [] in grep), but>> it will not work. I can search for the character by itself, and I can>> make it work in a character list in BBEdit, but I can't make it work >> in>> WebDNA.>> I've done [unurl]%5B[/unurl] before. It's definitely voodoo getting > them to> work.>>> Rob Marquardt> Designer/Resident Wirehead> Toast Design>> 800 Washington Avenue North> Minneapolis MN 55401> 612.330.9863 v> 612.321.9424 f> www.toastdesign.com>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/>-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Brian Fries
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:
Sorry I didn't pay attention-but ??? (1997)
Help formatting search results w/ table (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Country & Ship-to address & other fields ? (1997)
Permission Denied Error (2001)
[format xs] freeze (1997)
Almost a there but..bye bye NetCloak (1997)
!@#$$@@# formulas database, tax and freight. (2002)
[WebDNA] Help with work-around format date (2013)
Re:2nd WebCatalog2 Feature Request (1996)
Add to Cart & List of Products (1997)
sorting... (2003)
Counting LineItems (2000)
gateway application timeouts (1998)
Summary search -- speed (1997)
[OT] Bush's Cyberensive (2003)
WebTen and WebCat (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)
Webcat and other cgi (2000)
HTML editing and webcatalog (2000)