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 management system and word macro in some of my webdna page. basically you do your page layout and links in word, hit a macro button and all you have to do is paste the result in a text area to have SPIP transform the special meta 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] into some web site I used : [grep search=\[(.*)->(.*)\]&replace=\1][include spiplike.inc][/grep] but it looks like that if I have 2 links in the same file the grep only happens 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:

    
  1. Re(4): grep matching (laurent pladys 2003)
  2. Re: Re(2): grep matching (Brian Fries 2003)
  3. Re(2): grep matching (laurent pladys 2003)
  4. Re: grep matching (Brian Fries 2003)
  5. Re: grep matching (Rob Marquardt 2003)
  6. Re: grep matching (Brian Fries 2003)
  7. grep matching (laurent pladys 2003)
hi,i am trying to implement the SPIP (www.spip.org) content management system and word macro in some of my webdna page. basically you do your page layout and links in word, hit a macro button and all you have to do is paste the result in a text area to have SPIP transform the special meta 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] into some web site I used : [grep search=\[(.*)->(.*)\]&replace=\1][include spiplike.inc][/grep] but it looks like that if I have 2 links in the same file the grep only happens 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:

WCf2 and nested tags (1997) Find Duplicates in Cart (2001) PCS Frames (1997) Requiring that certain fields be completed (1997) OSX Install error (2000) standard vs intertwined multithreading (1999) RE: Purchased cart being overwritten (1997) WebDNA deletes major DB data big time (2004) Extract my page name (2006) Custom Convertchars Database (2004) case sensitivity in lookups (1997) [WebDNA] Hosting (2015) about this server and links to who (1997) Locking up with WebCatalog... (1997) Share Bulletin Board? (1998) UPS Rate Tables (2002) system crashes, event log (1997) Is Web Merchant Necessary? (2000) PCS Frames-Default page is solution! (1997) Superfilous Characters (1998)