H
Hal Vaughan
I can't find this in the FAQ, but I thought it was. If I have a range of
characters, like [a-zA-Z], how can I specify that I want to match any
character NOT in that range? (Yes, I know this is close to /W and /w, but
this is only an example).
I thought I remembered a characer I could use to invert a match like this so
if I were doing:
$line =~ s/[a-zA-Z]/x/g;
that if I used it, I could replace all characters NOT matching that range
instead of the ones that do.
Is there such a way to do this, or do I mis-remember?
Thanks!
Hal
characters, like [a-zA-Z], how can I specify that I want to match any
character NOT in that range? (Yes, I know this is close to /W and /w, but
this is only an example).
I thought I remembered a characer I could use to invert a match like this so
if I were doing:
$line =~ s/[a-zA-Z]/x/g;
that if I used it, I could replace all characters NOT matching that range
instead of the ones that do.
Is there such a way to do this, or do I mis-remember?
Thanks!
Hal