Re: Help with Grep exchange

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62773
interpreted = N
texte = You want [image:1234] to become 1234 Is that right? If so, [grep search=[image:([0-9]*)]&replace=\1][image:1234][/grep] I forget how to escape the [] in the search parameter. -----Original Message----- From: Palle B. Nielsen (PowerPalle) Sent: Tue, 9 Aug 2005 20:46:50 +0200 To: "WebDNA Talk" Subject: Help with Grep exchange Hi all, Hope to get some help here... I have a database where the following data can be found... [image:11236071978564286] The numbers is a cart value and therefore it will change depending on which row I read. I want to make a grep statement which looks for a [image: 11236071978564286] and excanges [image:11236071978564286] with the number within the [image:11236071978564286] in this case the [image: 11236071978564286] should be excanges with 11236071978564286 The [image:11236071978564286] can be found inside a variable called [the_text] I guess the grep statement would be something like this... [text]the_text=[grep search=\[image:11236071978564286\] &replace=][text]the_text[/text][/grep][/text] I am almost there but need some help to goal it... Palle ------------------------------------------------------------- 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:

    
  1. Re: Help with Grep exchange ( devaulw@onebox.com 2005)
  2. Help with Grep exchange ( "Palle B. Nielsen (PowerPalle)" 2005)
You want [image:1234] to become 1234 Is that right? If so, [grep search=[image:([0-9]*)]&replace=\1][image:1234][/grep] I forget how to escape the [] in the search parameter. -----Original Message----- From: Palle B. Nielsen (PowerPalle) Sent: Tue, 9 Aug 2005 20:46:50 +0200 To: "WebDNA Talk" Subject: Help with Grep exchange Hi all, Hope to get some help here... I have a database where the following data can be found... [image:11236071978564286] The numbers is a cart value and therefore it will change depending on which row I read. I want to make a grep statement which looks for a [image: 11236071978564286] and excanges [image:11236071978564286] with the number within the [image:11236071978564286] in this case the [image: 11236071978564286] should be excanges with 11236071978564286 The [image:11236071978564286] can be found inside a variable called [the_text] I guess the grep statement would be something like this... [text]the_text=[grep search=\[image:11236071978564286\] &replace=][text]the_text[/text][/grep][/text] I am almost there but need some help to goal it... Palle ------------------------------------------------------------- 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/ devaulw@onebox.com

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:

Copyright ? (1997) Emailer setup (1997) WebCat Versions (2003) [Shownext] [whynot] (2000) WebMerchant 1.6 and SHTML (1997) [IpAddress] Tag (1997) How far do [showif]s go? (1997) Help with [search] sort (2003) Memory Error message (1998) Need help with emailer- 2 issues (1997) WebCatalog [FoundItems] Problem - AGAIN - (1997) Add all products to cart at once? (1997) RE: creating writefile data from a nested search (1997) Re:mail list (1998) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) international time (1997) Items XX to XX shown (1997) [WebDNA] Basic Search (2008) Multiple catalog databases and showcart (1997) Quit revisited (1997)