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:
Fwd: virtual domain and [listfile] paths and aliases (1998)
New Webcatalog for Mac (1997)
RE: Major Security Hole IIS NT (1998)
WebCat2b13MacPlugIn - syntax to convert date (1997)
Credit card processing - UK (1997)
Major NT problem Interruption of service (1998)
Shopping problems with 2.1b3 acgi (1997)
Archives... (1997)
WebDNA 6 (2004)
2.0Beta Command Ref (can't find this instruction) (1997)
multi-paragraph fields (1997)
using showpage and showcart commands (1996)
Pass a form (2003)
bannerads (1998)
Looking for a Manual (1997)
SiteGuard Admin Feature ? (1997)
Error Log.db --however (1997)
hiding links (1999)
WebCat2 several catalogs? (1997)
How do I get Google to crawl a WebCat site? (2003)