Re: Grep issue

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 47150
interpreted = N
texte = on 1/22/03 6:46 PM, Rajeev Kumar at raj@idfk.com.au so noted...> It works for the * character: > > [text show=t]number=*61414200200[/text]
> [text show=t]number=[grep search=^\*?61&replace=0][number][/grep][/text] > >>> output>> > > *61414200200 > 0414200200 > > But not for the + character: > > [text show=t]number= +61414200200[/text]
> [text show=t]number=[grep search=^\+?61&replace=0][number][/grep][/text] > >>> output>> > > +61414200200 > +61414200200 How about looking for any non-numeric character?[text show=t]number=+61414200261[/text]
[text show=t][grep search=^[^0-9]?61&replace=0][number][/grep][/text] Rob Marquardt Designer/Resident Wirehead Toast Design800 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 issue (Rajeev Kumar 2003)
  2. Re: Grep issue (Rob Marquardt 2003)
  3. Re: Grep issue (alternative method) (Rajeev Kumar 2003)
  4. Re: Grep issue (Rajeev Kumar 2003)
  5. Re: Grep issue (Andrew Simpson 2003)
  6. Grep issue (Rajeev Kumar 2003)
on 1/22/03 6:46 PM, Rajeev Kumar at raj@idfk.com.au so noted...> It works for the * character: > > [text show=t]number=*61414200200[/text]
> [text show=t]number=[grep search=^\*?61&replace=0][number][/grep][/text] > >>> output>> > > *61414200200 > 0414200200 > > But not for the + character: > > [text show=t]number= +61414200200[/text]
> [text show=t]number=[grep search=^\+?61&replace=0][number][/grep][/text] > >>> output>> > > +61414200200 > +61414200200 How about looking for any non-numeric character?[text show=t]number=+61414200261[/text]
[text show=t][grep search=^[^0-9]?61&replace=0][number][/grep][/text] Rob Marquardt Designer/Resident Wirehead Toast Design800 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:

off topic - dna snipets (1997) math on date? (1997) [WebDNA] backup / mirror website & databases (2018) syntax question, not in online refernce (1997) [WebDNA] trouble with [url] encoding??? (2014) FW: Modtime bug? (2002) [WebDNA] Correct returnraw syntax? (2011) WebCat2b12plugin - [search] is broken ... not! (1997) New Command prefs ... (1997) Color options for items (1999) purchase.log file (1997) [Switch] - works great, suggestion (2000) Feature: TCPconnect via SSL (1999) Max Record length restated as maybe bug (1997) Re[2]: New syntax feedback for 4.0 (2000) Problems with ^ could be solved with [REPLACE CHARACTERS] (1997) Verbose error reporting (1998) Nested tags count question (1997) My slower response (1997) Emailer (WebCat2) (1997)