Re: Grep issue
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 47151
interpreted = N
texte = Awesome!That works perfectly Rob. Thanks!----- Original Message -----From: Rob Marquardt
To: WebCatalog Talk Sent: Friday, January 24, 2003 9:38 AMSubject: Re: Grep issue> 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 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/>>-------------------------------------------------------------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:
Awesome!That works perfectly Rob. Thanks!----- Original Message -----From: Rob Marquardt To: WebCatalog Talk Sent: Friday, January 24, 2003 9:38 AMSubject: Re: Grep issue> 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 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/>>-------------------------------------------------------------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/
Rajeev Kumar
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:
Emailer again & again (1997)
[DOS] (1999)
Webcatlog server not running (2008)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
PCS Frames (1997)
Multiple catalog databases and showcart (1997)
Ok here is a question? (1997)
db not being written to disk (2003)
[sendmail] questions... (1997)
[no_cache]?! (2000)
case number with spaces. (2000)
WebCat2 - storing unformatted date data? (1997)
WebCatalog Startup and OSX with ODBC (2002)
Webcatalog-firesite and [referrer] tag (1997)
Limiting [FoundItems] (2000)
ShippingCosts (1998)
Search returns all, not 20 (1997)
Multiple Ad databases? (1997)
More on the email templates (1997)
Another bug to squash (WebCat2b13 Mac .acgi) (1997)