Re: [WebDNA] Lookup inside grep?...

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106699
interpreted = N
texte = I'm not sure but am guessing that the back reference \1 is not substituted in the lookup tag. Here's slightly different code that might work: [text]image_id=3D[grep search=3D\[image\]([^[unurl]%5B[/unurl]]*)\[/image\]&replace=3D\1][image]20= 110606191716[/image][/grep][/text] [lookup db=3D/db/images.db&lookinfield=3Did_image&value=3D[image_id]&returnfield=3D= description] On Mon, Jun 6, 2011 at 8:16 PM, Cristi=E1n Tapia wro= te: > Hello everyone, > > Hope that someone can give me a hint on how to make this code work: > > [grep search=3D\[image\]([^[unurl]%5B[/unurl]]*)\[/image\]&replace=3D src=3D"/media/images/\1.jpg"> > [lookup > db=3D/db/images.db&lookinfield=3Did_image&value=3D\1&returnfield=3Ddescri= ption]] > [image]20110606191716[/image] > [/grep] > > The "\1" value is properly replaced in src=3D/media/images/20110606191716.jpg> but not under the lookup context = (it > remains as "\1"). > > Thank you so much in advance. > > Regards, > --------------------------------------------------- > Cristi=E1n Tapia Smith > Lemon Internet S.A. > ctapia@lemongroup.cl > http://www.lemongroup.cl > Antonia L=F3pez de Bello 172, Of. 801 > Fono: +562-7777542 > Santiago, Chile. > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Lookup inside grep?... (Govinda 2011)
  2. Re: [WebDNA] Lookup inside grep?... (William DeVaul 2011)
  3. [WebDNA] Lookup inside grep?... (=?ISO-8859-1?Q?Cristi=E1n_Tapia?= 2011)
I'm not sure but am guessing that the back reference \1 is not substituted in the lookup tag. Here's slightly different code that might work: [text]image_id=3D[grep search=3D\[image\]([^[unurl]%5B[/unurl]]*)\[/image\]&replace=3D\1][image]20= 110606191716[/image][/grep][/text] [lookup db=3D/db/images.db&lookinfield=3Did_image&value=3D[image_id]&returnfield=3D= description] On Mon, Jun 6, 2011 at 8:16 PM, Cristi=E1n Tapia wro= te: > Hello everyone, > > Hope that someone can give me a hint on how to make this code work: > > [grep search=3D\[image\]([^[unurl]%5B[/unurl]]*)\[/image\]&replace=3D src=3D"/media/images/\1.jpg"> > [lookup > db=3D/db/images.db&lookinfield=3Did_image&value=3D\1&returnfield=3Ddescri= ption]] > [image]20110606191716[/image] > [/grep] > > The "\1" value is properly replaced in src=3D/media/images/20110606191716.jpg> but not under the lookup context = (it > remains as "\1"). > > Thank you so much in advance. > > Regards, > --------------------------------------------------- > Cristi=E1n Tapia Smith > Lemon Internet S.A. > ctapia@lemongroup.cl > http://www.lemongroup.cl > Antonia L=F3pez de Bello 172, Of. 801 > Fono: +562-7777542 > Santiago, Chile. > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > 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:

Faxing orders in place of email (1997) Search in 2 or more catalogs (1997) Quit revisited (1997) [WebDNA] Iso latin1 to UTF conversion db (now with file) (2013) WebStar WebCat Crashing a lot (2004) [INCLUDE] Limitations (1998) Trying to Migrate from one server to another (2003) WebCatalog dying in WebTen Revisited (1998) WebDNA Book? (2003) Help formatting search results w/ table (1997) Display [price] in banner ad (1998) Searching multiple fields (1997) RE: Languages (1997) Odd [math] behavior (2003) WebCat2 several catalogs? (1997) ReturnRaw (1999) Resolving variables into field names (1998) Attention SMSI - DOCS Error (2004) Repeating Fields (1997) Requiring that certain fields be completed (1997)