Re: [OT] grep help

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59766
interpreted = N
texte = devaulw@onebox.com wrote: > Here's how to isolate the price: > > [grep search=.*(£[0-9,\.]*).*&replace=\1][longstring][/grep] > > I think you need to escape the . with a slash, i.e. \. It is usually not necessary to escape the period when it is part of a character class (though you should experiment with the WebDNA regex library to be sure). Typically, everything inside of the square brackets except the hyphen is treated as a single character (i.e. no special meaning); in fact, if the hyphen is one of the characters you need to make part of the class, you would typically list it first, even if you used it later in the expression to notate a range. John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- 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:

    
  1. Re: [OT] grep help ( John Peacock 2004)
  2. Re: [OT] grep help ( devaulw@onebox.com 2004)
  3. [OT] grep help ( Mark Derrick 2004)
devaulw@onebox.com wrote: > Here's how to isolate the price: > > [grep search=.*(£[0-9,\.]*).*&replace=\1][longstring][/grep] > > I think you need to escape the . with a slash, i.e. \. It is usually not necessary to escape the period when it is part of a character class (though you should experiment with the WebDNA regex library to be sure). Typically, everything inside of the square brackets except the hyphen is treated as a single character (i.e. no special meaning); in fact, if the hyphen is one of the characters you need to make part of the class, you would typically list it first, even if you used it later in the expression to notate a range. John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- 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/ John Peacock

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:

FAX orders (1996) Tech support (2000) multi-paragraph fields (1997) acgi to plugin migration problems (2000) Templates on Unix & CGI on Mac? (1997) Logging purchases (1997) Bug? (1997) Error log crashes server? (1999) Calendar Program (2004) Moving to a new machine (2006) problems with 2 tags (1997) URGENT: NO BUG, woFIELDdata & FIELDword=ww (2002) ErrorMessages.db suggestion (1997) splitting numbers in webDNA? (1997) inconsistent webcat calculation? (1997) [LOOKUP] (1997) WebDNA Solutions ... sorry! (1997) Error: Permision deny. (2005) Emailer Set Up (1997) shownext (2000)