[GREP] Why is the dash invalid?

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45689
interpreted = N
texte = When performing the following grep search, the dash is returned as an invalid character:[grep search=([^a-zA-Z,.\-\ ])&replace=\1_][shiptoname][/grep]I attempted to not escape the dash as well, but then numbers (an possibly other items) became legal. What am I doing wrong here?Thanks,Dennis ------------------------------------------------------------- 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. [GREP] Why is the dash invalid? (Dennis J. Bonsall, Jr. 2002)
When performing the following grep search, the dash is returned as an invalid character:[grep search=([^a-zA-Z,.\-\ ])&replace=\1_][shiptoname][/grep]I attempted to not escape the dash as well, but then numbers (an possibly other items) became legal. What am I doing wrong here?Thanks,Dennis ------------------------------------------------------------- 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/ Dennis J. Bonsall, Jr.

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:

apostrophe in search item (1997) WebCat2.0 acgi vs plugin (1997) New command suggestion (1997) MacAuthorize order data fields WAS:How To question... (1997) Problems getting parameters passed into email. (1997) More news on 5.0 (2003) Date Formats (1997) Formatting ModDate (2000) WebCat2b12 CGI Mac - [shownext] problem (1997) Shopping Cart - prices? (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Sorting by date (1997) help with duplicate records posted (1998) (1997) anyone moved to v6? (2004) Another question (1997) Location of Browser Info.txt file (1997) Range in [showif] (2000) ShowIf & HideIf Question? (1998) Not exercising the code as much as in other betas (2000)