Re: Grep Search and Replace
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 44019
interpreted = N
texte = on 10/9/02 12:57 PM, Marc Kaiwi at marc@kaiwi.com so noted...> Anyone have a quick Grep search to find:> > 3. and 13. but not 3.1 or 13.33?This will find one or two digit numbers ending with 3. and wrap bold tagsaround them. I don't know what you're looking to replace the found textwith. It won't work if what you're looking for is at the end of a line. Itneeds a trailing non-digit character to do the match.[grep search=([0-9]*3\.)([^0-9])&replace=
\1\2]3. and 13. but not 3.1or 13.33?[/grep]The frustrating thing about [grep] in WebDNA is figuring out what *doesn't*work. Common assertions like /d for digit or /D for non-digit are simplyignored (treated as the literal string). This is where a basic referenceguide listing what's supported would come in handy.Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
on 10/9/02 12:57 PM, Marc Kaiwi at marc@kaiwi.com so noted...> Anyone have a quick Grep search to find:> > 3. and 13. but not 3.1 or 13.33?This will find one or two digit numbers ending with 3. and wrap bold tagsaround them. I don't know what you're looking to replace the found textwith. It won't work if what you're looking for is at the end of a line. Itneeds a trailing non-digit character to do the match.[grep search=([0-9]*3\.)([^0-9])&replace=\1\2]3. and 13. but not 3.1or 13.33?[/grep]The frustrating thing about [grep] in WebDNA is figuring out what *doesn't*work. Common assertions like /d for digit or /D for non-digit are simplyignored (treated as the literal string). This is where a basic referenceguide listing what's supported would come in handy.Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.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://search.smithmicro.com/
Rob Marquardt
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:
Chicago based WebCat Hosters (2000)
Frames and WebCat (1997)
WebCat for Unix?? (1997)
Summary layout (1997)
[ShowNext] feature in 2.0 (1997)
DON'T use old cart file! (1997)
IPTC to Image (2004)
b12 cannot limit records returned and more. (1997)
Undeliverable Mail (1997)
creator code (1997)
Configuration Q (1998)
Help! WebCat2 bug (1997)
[OT] (waaaay OT) (2004)
syntax question, not in online refernce (1997)
difference between v.6 and v.7, WAS: [WebDNA] v7 thisurl has different behavour (2012)
webmerchant/ Mac Auth. and CC refunds (1998)
no global [username] or [password] displayed ... (1997)
2cd pair.. [math] and European Date format (2004)
Form Data, Back Button and 6.0.1 Patch (2005)
LIstFiles - filnames are cart numbers. (2000)