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:
Nested vs conditional (1997)
WebCat2b15MacPlugin - showing [math] (1997)
TCPConnect / Current Temperature (2004)
Running a store on BOTH http and https (1998)
Getting total number of items ordered (1997)
WebCat2 several catalogs? (1997)
WebCat2b12 - nesting [tags] (1997)
Auto Date (2001)
WebCat editing, SiteGuard & SiteEdit (1997)
HomePage Caution (1997)
Universal root for WC errors? (1997)
Encoding information to send through TCPConnect (1999)
WebDNA Developer Edition - Host config problem (2003)
PCS Frames (1997)
40,000+ items = mutiple dbs? (1999)
expired beta (1997)
AE aware WebCatalog.acgi? (1997)
[OT] Authorize.net (2003)
SiteGuard Admin Feature ? (1997)
WebCat2 beta 11 - new prefs ... (1997)