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:
'page impression' techniques for banner ads (1999)
Just Testing (1997)
[tcpsend] (2001)
Question about replacing words (1998)
[OT] Mozilla | Was: R.I.P. Netscape (2003)
NEW INFO: I'm stuck: Can't open order file.Ignoring[OrderFile] context (2000)
Database Updates (1997)
List of WebDNA users (2002)
WCS Newbie question (1997)
Next (1997)
E-Mailer (WebCatb15acgiMac) (1997)
RE: [WebDNA] IIS 6.0 Custom Errors & WebDNA 6.2 (2009)
os 8.5 (1999)
Nesting [RAW] (1998)
PSC recommends what date format yr 2000??? (1997)
[WebDNA] Dead line Time Math (2017)
Which beta for w* 4.1 and a problem w/b12 (1999)
Mac: LModelDirector bug fix (1997)
Upcoming 2.1 Release and PCS Committment (1997)
[WebDNA] maybe silly suggestion? [founditems] (2015)