grep matching
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 47879
interpreted = N
texte = hi,i am trying to implement the SPIP (www.spip.org) content managementsystem and word macro in some of my webdna page. basically you do yourpage layout and links in word, hit a macro button and all you have todo is paste the result in a text area to have SPIP transform the specialmeta tags into regular html tags. For example the following :---{{{title}}}go to [some web site->http://www.somewebsite.com]{cool no} ?---transforms into ---
title
go to
some web sitecool no ?---I managed to transform the {{{ with convertwords and a special database.My problem is converting [some web site->http://www.somewebsite.com] into
some web siteI used : [grep search=\[(.*)->(.*)\]&replace=
\1][includespiplike.inc][/grep]but it looks like that if I have 2 links in the same file the grep onlyhappens once and it tries to do the grep on all the links at once.Is there a way to tell grep to match the shortest string possible ?You can see a sample of the result here : http://www.lxir.net/demos/spip/Laurent-------------------------------------------------------------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,i am trying to implement the SPIP (www.spip.org) content managementsystem and word macro in some of my webdna page. basically you do yourpage layout and links in word, hit a macro button and all you have todo is paste the result in a text area to have SPIP transform the specialmeta tags into regular html tags. For example the following :---{{{title}}}go to [some web site->http://www.somewebsite.com]{cool no} ?---transforms into ---title
go to some web site
cool no ?---I managed to transform the {{{ with convertwords and a special database.My problem is converting [some web site->http://www.somewebsite.com] intosome web siteI used : [grep search=\[(.*)->(.*)\]&replace=\1][includespiplike.inc][/grep]but it looks like that if I have 2 links in the same file the grep onlyhappens once and it tries to do the grep on all the links at once.Is there a way to tell grep to match the shortest string possible ?You can see a sample of the result here : http://www.lxir.net/demos/spip/Laurent-------------------------------------------------------------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/
laurent pladys
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:
[HIDEIF] inside [FOUNDITEM] (1997)
Error Type 3 (1999)
Sandbox Administation (2003)
Re:E-Mailer (WebCatb15acgiMac) (1997)
ReadDateFormat bug in 3.x (1998)
Shopping cart problem (2003)
encrypt/decrypt - are docs correct?? (2002)
WebCat2: Master Counter snippet (1997)
Adding Header Values with [SetHeader] (1998)
ShowNext Page Style (2003)
math on date? (1997)
Emailer port change (1997)
ShowNext Command (1997)
Running 2 two WebCatalog.acgi's (1996)
database (2000)
Netscape (1997)
WC Database Format (1997)
NT IIS number of files limit (2003)
syntax question, not in online refernce (1997)
passwords (2000)