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 PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 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:
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 PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 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:
To Do list (2003)
Expected Behavior? (1999)
Re[2]: SSL data to/from webcatalog? (2000)
New Command prefs ... (1997)
search zip codes ranges (2003)
How does WebCatalog search the database? (1997)
Summing fields (1997)
Searching (2004)
Table sorting by selected category then others (2004)
Need relative path explanation (1997)
eMail volume (2000)
[WriteFile] problems (1997)
Web Browser %Numbers - A must read for web developers (2003)
Plugin or CGI or both (1997)
PSC recommends what date format yr 2000??? (1997)
Further tests with the infamous shipCost (1997)
b12 cannot limit records returned and more. (1997)
Forcing price recalculation in shopping cart (1998)
Search Command, multiple dbs, etc. --Right! (2000)
I think WebDNA-Talk died ... :( (1997)