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:
Server Freeze (1998)
[OT] Kerio Mailserver (2003)
win2003 server (Web, standard, small business, edition) (2005)
Restart of DBserver (1997)
WebDNA & HTML Problems (2003)
creates folders with AS (1997)
WebCat editing, SiteGuard & SiteEdit (1997)
[ShowNext] feature in 2.0 (1997)
FM fields with CR - How to export/import? (2000)
authorize.net SIM & AIM Sample Code (2002)
Nested tags count question (1997)
Next (1997)
Ampersand (1997)
Groups doesn't work (1997)
Two submit buttons ? (1997)
WebCat2b12 - New features for 1.6 users ... (1997)
Displaying xx number of characters (1997)
Part Html part WebDNA (1997)
test... (2007)
Web* 4.2 (2000)