Re: [OT] grep help
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 59765
interpreted = N
texte = 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. \.This is so it is treated as "any character" in regex parlance. This should discard any text that is not the price. Bill-----Original Message-----From: Mark Derrick
Sent: Tue, 26 Oct 2004 16:35:46 +0100To: "WebDNA Talk" Subject: [OT] grep helpA little off topic :-)My grep knowledge is pretty basic, and this one's out of my range.I need to use grep to isolate a price in a large stringThe format of the price will be1) £xxx.xx2) £xxxx.xx3) £x,xxx.xxAnyone able to point me in the right direction?Thanks.Mark.-------------------------------------------------------------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/-------------------------------------------------------------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:
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. \.This is so it is treated as "any character" in regex parlance. This should discard any text that is not the price. Bill-----Original Message-----From: Mark Derrick Sent: Tue, 26 Oct 2004 16:35:46 +0100To: "WebDNA Talk" Subject: [OT] grep helpA little off topic :-)My grep knowledge is pretty basic, and this one's out of my range.I need to use grep to isolate a price in a large stringThe format of the price will be1) £xxx.xx2) £xxxx.xx3) £x,xxx.xxAnyone able to point me in the right direction?Thanks.Mark.-------------------------------------------------------------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/-------------------------------------------------------------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/
devaulw@onebox.com
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:
F*** you (1998)
emailer (1997)
WebCat2 as a chat server? (1997)
spawn (1998)
WebCat2: Items xx to xx shown, etc. (1997)
Ampersand (1997)
OT: Sending email to lots of subscribers (1999)
emailer w/F2 (1997)
[OT] MS Security Flaw (2000)
time wrong in emails from emailer!? (2002)
SERIAL NUMBER PROBLEM *AGAIN*!!! (1998)
Bug Report, maybe (1997)
strip .0 off off IPaddress (1998)
[dos] command question (1997)
Browser Problem?!? Still getting Error message usingPOST! (1997)
Can't load tmpl files (1997)
Search in 2 or more catalogs (1997)
WebCat2 - [format thousands] (1997)
Wanted: Broader string manipulation functions (1997)
graphics server, SSL, Netscape 4.0 (off topic) (1998)