Re: grep for search, not replace

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45709
interpreted = N
texte = Thanks - that should do it!-----Original Message----- From: Brian Fries [mailto:webdna@brainscansoftware.com] Sent: Monday, November 25, 2002 11:35 AM To: WebDNA-Talk@talk.smithmicro.com Subject: Re: grep for search, not replace You can grep with replace into a temporary variable, then compare the temporary variable to the original, something like this... [text]temp=[grep search=ABC&replace=][originaltext][/grep][/text][showif [url][temp][/url]![url][original][/url]] The search string was found! [/showif]- brianAt 10:27 AM 11/25/2002, ScottR@benjerry.com wrote: >Can grep be used to just to test for the existence of a pattern, rather than >being used to replace it? -- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.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/------------------------------------------------------------- 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: grep for search, not replace (John Peacock 2002)
  2. Re: grep for search, not replace (ScottR@benjerry.com 2002)
  3. Re: grep for search, not replace (Brian Fries 2002)
  4. Re: grep for search, not replace (ScottR@benjerry.com 2002)
  5. Re: grep for search, not replace (John Peacock 2002)
  6. grep for search, not replace (ScottR@benjerry.com 2002)
Thanks - that should do it!-----Original Message----- From: Brian Fries [mailto:webdna@brainscansoftware.com] Sent: Monday, November 25, 2002 11:35 AM To: WebDNA-Talk@talk.smithmicro.com Subject: Re: grep for search, not replace You can grep with replace into a temporary variable, then compare the temporary variable to the original, something like this... [text]temp=[grep search=ABC&replace=][originaltext][/grep][/text][showif [url][temp][/url]![url][original][/url]] The search string was found! [/showif]- brianAt 10:27 AM 11/25/2002, ScottR@benjerry.com wrote: >Can grep be used to just to test for the existence of a pattern, rather than >being used to replace it? -- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.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/------------------------------------------------------------- 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/ ScottR@benjerry.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:

[WebDNA] Integrating with WP and PHP (2011) Whats going on with my SERIAL NUMBER??? (1998) Keep away (1997) [OT] XML data to tab delimited database (2003) Redirect frame targets (1998) referrer (2000) Only charge card when product shipped ? (1997) Append command(2) (2000) Lots of bounce errors (2007) Intermitent problem using [referrer] (1997) Emailer and encryption (1997) WebCat2b13MacPlugIn - syntax to convert date (1997) suffix mapping, use of cache, etc. (1997) Tax Laws for Online Sales (2003) Invisible file issue now a real 'bug' (1999) Separate SSL Server (1997) Signal Raised (1997) NT 4.0/IIS WebCat Installation (1998) FRAMES and CART tags problem??!? (1999) Sense/Disallow HTML tags during $Append (1997)