Re: Grep Problems
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62749
interpreted = N
texte = Hi Clint,Though it seems that it would end the context prematurely, this actually does work as you're wanting:[Middle StartAfter=|&EndBefore=|]XXL - White|90140|1-[/Middle]GJKAt 03:35 PM 8/5/2005, you wrote:>I need to extract the five digit number between the pipes in the following>string:>XXL - White|90140|1->>I can get this to work using the following grep search in a text editor>(BBEdit), but not in WebDNA 6.x:>(\|)([0-9]+)(\|)>>The following WebDNA code does *NOT* work:>[grep search=(\|)([0-9]+)(\|)&replace=\2]XXL - White|90140|1-[/grep]>>It seems that WebDNA won't accept multiple patterns. So, how could I use>grep to remove the leading and trailing characters so that the result is:>90140>>I tried this with no success:>[grep search=[a-zA-Z\s\-]*\|&replace=]XXL - White|90140|1-[/grep]>>>???-------------------------------------------------------------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:
Hi Clint,Though it seems that it would end the context prematurely, this actually does work as you're wanting:[Middle StartAfter=|&EndBefore=|]XXL - White|90140|1-[/Middle]GJKAt 03:35 PM 8/5/2005, you wrote:>I need to extract the five digit number between the pipes in the following>string:>XXL - White|90140|1->>I can get this to work using the following grep search in a text editor>(BBEdit), but not in WebDNA 6.x:>(\|)([0-9]+)(\|)>>The following WebDNA code does *NOT* work:>[grep search=(\|)([0-9]+)(\|)&replace=\2]XXL - White|90140|1-[/grep]>>It seems that WebDNA won't accept multiple patterns. So, how could I use>grep to remove the leading and trailing characters so that the result is:>90140>>I tried this with no success:>[grep search=[a-zA-Z\s\-]*\|&replace=]XXL - White|90140|1-[/grep]>>>???-------------------------------------------------------------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/
Gary Krockover
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:
input and accents (2000)
Too many webcat comments. [WAS- Large founditems loops] (2000)
[WebDNA] How to go into old WebCatalog? (2009)
setting taxable to true (1997)
Huge databases and RAM (1998)
WebCat2b15MacPlugin - [protect] (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
New Mac Emailer... (1997)
WebDNA Writer Needed (1997)
Browser Info.txt (1997)
French characters in variables (2001)
v6.x & [cart] (2004)
multi-paragraph fields (1997)
I have troubles to send message out (1998)
[math] storage of variables (1997)
Secure Server basic question... (1997)
More DateMath problems (1997)
webcat- multiple selection in input field (1997)
iTools and 3.0.8 (2000)
incrementing a counter remotely? (1999)