Grep and Special Characters

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 42530
interpreted = N
texte = I have what I hope will be a quick question.I'm using the grep context to do a complex find a replace type operation that is working great, except I can't figure out how make it place an & character in the replace statement. I've tried escaping it per standard grep documentation which would be \&, but this doesn't work because WebCat sees this as another context option. So I tried several variations on this theme using the ascii value, the hex value and others on the same theme, but they all failed.So basically, how do I terminate an & character in a grep replace statement?Thank you,Jason Tyler ------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Grep and Special Characters (Jason Tyler 2002)
  2. Re: Grep and Special Characters (Brian Fries 2002)
  3. Re: Grep and Special Characters (Jason Tyler 2002)
  4. Re: Grep and Special Characters (Josh Lynn 2002)
  5. Re: Grep and Special Characters (Brian Fries 2002)
  6. Re: Grep and Special Characters (Jason Tyler 2002)
  7. Re: Grep and Special Characters (Marc Kaiwi 2002)
  8. Grep and Special Characters (Jason Tyler 2002)
I have what I hope will be a quick question.I'm using the grep context to do a complex find a replace type operation that is working great, except I can't figure out how make it place an & character in the replace statement. I've tried escaping it per standard grep documentation which would be \&, but this doesn't work because WebCat sees this as another context option. So I tried several variations on this theme using the ascii value, the hex value and others on the same theme, but they all failed.So basically, how do I terminate an & character in a grep replace statement?Thank you,Jason Tyler ------------------------------------------------------------- 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://search.smithmicro.com/ Jason Tyler

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:

WCS Newbie question (1997) NT b19 sends extra MIME headers (1997) Trouble with formula.db (1997) SHOWIF/HIDEIF empty fields (2005) Frames (1997) You can't buy something twice... (1997) E-mail formating question (1999) DB Size - MAX (2004) Problem with imagemap variables (2006) Execute Applescript (1997) Delete context run amok (2005) WebDNA 6 (2004) protect tag on NT IIS (1997) Possible Bug in 2.0b15.acgi (1997) need to add a sku field to an existing db (2005) Help!!!! Purchases not going through! (1997) searching multiple databases (1997) WC on Mac OS X or Mac OS X Server 2.x (2001) [ipaddress] (2003) WebCatalog2 for NT Beta Request (1997)