Re: Grep Problems
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62750
interpreted = N
texte = I just figured this out as well. Thanks fellas!On 8/5/05 3:42 PM, "Gary Krockover"
wrote:> Hi Clint,> > Though it seems that it would end the context prematurely, this actually does> work as you're wanting:> > [Middle StartAfter=|&EndBefore=|]> XXL - White|90140|1-> [/Middle]> > GJK> > At 03:35 PM 8/5/2005, you wrote:>> I need to extract the five digit number between the pipes in the following>> string:>> XXL - White|90140|1->> >> I can get this to work using the following grep search in a text editor>> (BBEdit), but not in WebDNA 6.x:>> (\|)([0-9]+)(\|)>> >> The following WebDNA code does *NOT* work:>> [grep search=(\|)([0-9]+)(\|)&replace=\2]XXL - White|90140|1-[/grep]>> >> It seems that WebDNA won't accept multiple patterns. So, how could I use>> grep to remove the leading and trailing characters so that the result is:>> 90140>> >> I tried this with no success:>> [grep search=[a-zA-Z\s\-]*\|&replace=]XXL - White|90140|1-[/grep]>> >> >> ???-------------------------------------------------------------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:
I just figured this out as well. Thanks fellas!On 8/5/05 3:42 PM, "Gary Krockover" wrote:> Hi Clint,> > Though it seems that it would end the context prematurely, this actually does> work as you're wanting:> > [Middle StartAfter=|&EndBefore=|]> XXL - White|90140|1-> [/Middle]> > GJK> > At 03:35 PM 8/5/2005, you wrote:>> I need to extract the five digit number between the pipes in the following>> string:>> XXL - White|90140|1->> >> I can get this to work using the following grep search in a text editor>> (BBEdit), but not in WebDNA 6.x:>> (\|)([0-9]+)(\|)>> >> The following WebDNA code does *NOT* work:>> [grep search=(\|)([0-9]+)(\|)&replace=\2]XXL - White|90140|1-[/grep]>> >> It seems that WebDNA won't accept multiple patterns. So, how could I use>> grep to remove the leading and trailing characters so that the result is:>> 90140>> >> I tried this with no success:>> [grep search=[a-zA-Z\s\-]*\|&replace=]XXL - White|90140|1-[/grep]>> >> >> ???-------------------------------------------------------------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/
Clint Davis
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:
Possible Bug in 2.0b15.acgi (1997)
Problem (1997)
FW: 2.01 upgrade problems (1997)
WebCatalog for Mac 2.0.1 Released (1997)
authorize.net AIM (2003)
WebCat2final1 crashes (1997)
Error Lob.db records error message not name (1997)
setting taxable to true (1997)
Recording size of uploaded file? (2001)
Where is the linux 4.02b5 FTP download located? (2000)
Where's Cart Created ? (1997)
2.0 Info (1997)
WebCat2 Append problem (B14Macacgi) (1997)
[WebDNA] client request (2010)
WebCatalog NT beta 18 now available (1997)
RE: Error: template (1997)
OT: Real time Stats (2003)
WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997)
Summing fields (1997)
File not found error message (1998)