Re: SM: Grep Syntax?
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62775
interpreted = N
texte = I think the asterisk is for zero or more. You need to use the conventional '+' for one or more but the grep in WebDNA has no support for that. The workaround is to use[grep search=([a-z][a-z]*)([0-9][0-9]*)([a-z][a-z]*)&replace=\2]abc567xyz[/ grep]On Aug 9, 2005, at 8:22 PM, Clint Davis wrote:> Are multiple patterns allowed in a [grep] search? If so, what is the > syntax?> I have tried the following with 6.0a/MacOS X with no success:>> [grep search=([a-z]*)([0-9]*)([a-z]*)&replace=\2]abc567xyz[/grep]>> Should return: 567>>>> -------------------------------------------------------------> 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:
I think the asterisk is for zero or more. You need to use the conventional '+' for one or more but the grep in WebDNA has no support for that. The workaround is to use[grep search=([a-z][a-z]*)([0-9][0-9]*)([a-z][a-z]*)&replace=\2]abc567xyz[/ grep]On Aug 9, 2005, at 8:22 PM, Clint Davis wrote:> Are multiple patterns allowed in a [grep] search? If so, what is the > syntax?> I have tried the following with 6.0a/MacOS X with no success:>> [grep search=([a-z]*)([0-9]*)([a-z]*)&replace=\2]abc567xyz[/grep]>> Should return: 567>>>> -------------------------------------------------------------> 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/
William DeVaul
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:
wild question (1998)
taxTotal (1997)
Can't use old cart file (was One more try) (1997)
Running 2 two WebCatalog.acgi's (1996)
Frames and WebCat (1997)
This list needs a digest: rant, rave... (1997)
Authenticate (1997)
Redirect and passing more than one variable... (2002)
IE Cache Problems... (1999)
[WebDNA] lighttpd and gzip compression with webdna? (2015)
WebCommerce: Folder organization ? (1997)
Questions To Answer (1997)
Price override (2004)
Webcat does auto checksum in [setheader]? (1999)
Newbie - Search question (1998)
WebCat2b13 Command Reference Doc error (1997)
OSX Dev Server? (2004)
Archive (Zip, Sit, Tgz) (2004)
Sendmail Context (2003)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)