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:
 
Search in 2 or more catalogs (1997)
 
[checkboxes] and webcat (2000)
 
Search design (1997)
 
Carts & Refering URLs (1997)
 
WebCat NT v. Mac  (1997)
 
What am I missing (1997)
 
How about this? (1998)
 
PIXO support (1997)
 
WebCat2b15MacPlugin - [protect] (1997)
 
Help name our technology! (1997)
 
Emailer (1999)
 
[REPLACE] inside [FOUNDITEMS] (1998)
 
ooops...WebCatalog [FoundItems] Problem - LONG - (1997)
 
Webcat/Webmerchant part II (1998)
 
Nested tags count question (1997)
 
 mod_webcatalog2.so (2003)
 
The [shownext] limitations (2002)
 
Grant, please help me ... (1997)
 
Help with [search] sort (2003)
 
displaying 12 results 4 by 3 (2000)