What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

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:

    
  1. Re: Grep Problems ( Clint Davis 2005)
  2. Re: Grep Problems ( Gary Krockover 2005)
  3. Re: Grep Problems ( Donovan Brooke 2005)
  4. Grep Problems ( Clint Davis 2005)
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:

Great product and great job ! (1997) What am I missing (1997) searching numbers (1998) Netscape Communicator 4 (1997) [ot] Webserver monitoring (2001) [WebDNA] [Delete] doesn delete all... (2009) Rollovers (1999) WebCatalog-NT?'s (1996) Can you specify encoding=multiline? (2000) Webcatalog server support (1997) Emailer [cart] file names (1997) command requires that you specify a db errors (2000) Re:no [search] with NT (1997) Search bug. Help (2002) another problem (1997) Sample Tearoom Search Error (1997) Upgrading old WebCat Database Files (1997) SSL (1998) Running 2 two WebCatalog.acgi's (1996) WC2b15 - [HTMLx]...[/HTMLx] problems (1997)