Re: Grep and <>

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61194
interpreted = N
texte = on 2/24/2005 4:21 pm, Larry Goodhew at larry@surfin-g.com so noted... > Here is the sample code I am trying: > [grep search=Hello World

[/grep] > > It should display FRED>Hello World

by my understanding of how the matching > works. Isn't this a simple two character match? It does not match however. > > I can't see what you have done differently in yours so that is does match. It > looks like you are just matching the two characters like I am and then the > contents between those two characters and the ending >. > > Your example will need a little tweeking as it doesn't work on the content I > am > trying to clean up such as this;

. Grep is case-sensitive. Change your test to [grep search=<[Pp]&replace=FRED] Change mine to [grep search=<[Pp][^>]*>&replace=

] Rob Marquardt Designer/Resident Wirehead Toast Design 800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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 and <> ( Grant Hulbert 2005)
  2. Re: Grep and <> ( Rob Marquardt 2005)
  3. Re: Grep and <> ( "Larry Goodhew" 2005)
  4. Re: Grep and <> ( "Larry Goodhew" 2005)
  5. Re: Grep and <> ( Rob Marquardt 2005)
  6. Re: Grep and <> ( Donovan Brooke 2005)
  7. Grep and <> ( "Larry Goodhew" 2005)
on 2/24/2005 4:21 pm, Larry Goodhew at larry@surfin-g.com so noted... > Here is the sample code I am trying: > [grep search=Hello World

[/grep] > > It should display FRED>Hello World

by my understanding of how the matching > works. Isn't this a simple two character match? It does not match however. > > I can't see what you have done differently in yours so that is does match. It > looks like you are just matching the two characters like I am and then the > contents between those two characters and the ending >. > > Your example will need a little tweeking as it doesn't work on the content I > am > trying to clean up such as this;

. Grep is case-sensitive. Change your test to [grep search=<[Pp]&replace=FRED] Change mine to [grep search=<[Pp][^>]*>&replace=

] Rob Marquardt Designer/Resident Wirehead Toast Design 800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.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/ Rob Marquardt

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:

[ShowNext] (1997) [OT] (waaaay OT) further off topic than before (2004) [WebDNA] El Capitan with WebDNA 8.1 fastCGI (2015) [ShowNext] (1997) MacAuthorize Problem (1998) autocommit problem (1998) all records returned. (1997) page chokes on hideif when false and ignored (1998) [WebDNA] Downloadable docs (2011) Looking for a Manual (1997) %@#*& back button!!! (1999) [ShowIf] and empty fields (1997) Erotic Sites (1997) [searchString] (1997) CustomerType - WebDNA Variable (2004) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) BR (1997) Authenticate (1997) [WebDNA] Serial numbers and pricing for WebDNA 7.0 (2011) SmithMicro FTP problems (2002)