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:
Username for Admin Group (1997)
Erotic Sites (1997)
Replace Statement (1997)
RE: shrink-wrapped version out yet? (1997)
Maybe off topic but how to charge (1997)
Error: Too many nested [xxx] contexts (1997)
Mac: [ListFiles] bug alert (1997)
[OT] Apple and 128bit SSL (2003)
WebCat b15 Mac plug-in (1997)
Emailer Set Up (1997)
MacWEEK article help needed (1996)
writefile, csv, tab and excel import behavior (2004)
how to get s repeatedly in and out of a form? (1999)
whole word matching (2004)
[OT] JS Libraries (2007)
question: webmerchant connection (1997)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
Carts & cookies (1999)
Removing [showif] makes a big difference in speed (1997)
RE: protect tag on NT (1997)