Re: \Q on an pattern containing double quotes, braces etc.

2008-03-17 Thread John W. Krahn
R (Chandra) Chandrasekhar wrote: Dear Folks, Hello, I want to comment out certain lines in a file that match a particular pattern. The file contains lines with characters like: {, }, ==, and ". '{' is only special in a regular expression if it is immediately followed by a numerical digit,

\Q on an pattern containing double quotes, braces etc.

2008-03-17 Thread R (Chandra) Chandrasekhar
Dear Folks, I want to comment out certain lines in a file that match a particular pattern. The file contains lines with characters like: {, }, ==, and ". Specifically, I want to replace lines beginning with ATTRS{idVendor}=="07b4", ATTRS{idProduct}=="0109", with # ATTRS{idVendor}=="07b4", A