Grep Problems
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62747
interpreted = N
texte = I need to extract the five digit number between the pipes in the followingstring: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 usegrep to remove the leading and trailing characters so that the result is:90140I 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:
I need to extract the five digit number between the pipes in the followingstring: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 usegrep to remove the leading and trailing characters so that the result is:90140I 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/
Clint Davis
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:
Looking for a Manual (1997)
redirect with frames (1997)
WebCat2: Found Items syntax, etc. (1997)
[date] tag not working on mac 4.0.1 (2000)
Deadlock (1999)
DNA Bandwidth Monitor (2005)
Help! WebCat2 bug (1997)
New command suggestion (was Modifying databasesmanually) (1997)
Cyberstudio and WebDNA (1997)
Searching multiple fields from one form field (1997)
Pricing based on quantity (2000)
tab deliminated txt file (2001)
Help with Repost Data msg from form (1997)
Math, Multiple Equasions and Show/Hide (1998)
[WebDNA] An unknown error occured // Deadlock avoided (2011)
WC2.0 Memory Requirements (1997)
docs for WebCatalog2 (1997)
f2 download problems (1997)
Country & Ship-to address & other fields ? (1997)
Protecting Images (2003)