in reply to Guess I don't have \Q and \E figured out yet...
You didn't actually have "the a by itself" -- by the time your string gets to the regex, \a has already been interpreted as a beep, and so applying \Q leaves you with a backslashed beep. In fact, anything *but* \\a in the original string constant (e.g. using \Q or quotemeta) will be too late to do anything but leave you with a backslashed beep.
hdp.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
\Q and \E vs. quotemeta?
by Albannach (Monsignor) on Apr 30, 2001 at 20:47 UTC | |
by tye (Sage) on Apr 30, 2001 at 20:52 UTC |