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 tags around them. I don't know what you're looking to replace the found text with. It won't work if what you're looking for is at the end of a line. It needs 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.1 or 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 simply ignored (treated as the literal string). This is where a basic reference guide listing what's supported would come in handy. Rob Marquardt Designer/Resident Wirehead Toast Design800 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Grep Search and Replace (John Peacock 2002)
  2. Re: Grep Search and Replace (Rob Marquardt 2002)
  3. Re: Grep Search and Replace (Inkblot Media 2002)
  4. Re: Grep Search and Replace (Inkblot Media 2002)
  5. Re: Grep Search and Replace (Donovan 2002)
  6. Grep Search and Replace (marc@kaiwi.com (Marc Kaiwi) 2002)
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 tags around them. I don't know what you're looking to replace the found text with. It won't work if what you're looking for is at the end of a line. It needs 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.1 or 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 simply ignored (treated as the literal string). This is where a basic reference guide listing what's supported would come in handy. Rob Marquardt Designer/Resident Wirehead Toast Design800 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://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:

Fun with Dates - revisited (1997) Can't find templaes (1997) WC2b15 File Corruption (1997) NetForms for mail, sorry (1998) Secure server question (1997) Quick Question About Sorting (1997) [WriteFile] problems (1997) How to Sort Summ data ? (1997) Another calendar... (2002) WCS Newbie question (1997) Quit revisited (1997) [WebDNA] parsing xml (2010) WC2f3 (1997) SandBox and ImageMagick (2003) Press Release hit the NewsWire!!! (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Fishing: anyone on this group willing to do support? (1998) WCS Newbie question (1997) WebCat2 - Getting to the browser's username/password data (1997) Exclamation point (1997)