How can I match a locale-smart version of
/[a-zA-Z]/
?
One alphabetic character would be
/[^\W\d_]/
, no matter what locale you're in. Non-alphabetics would be
/[\W\d_]/
(assuming you don't consider an underscore a letter).
Back to
How can I make
\w
match accented characters?
Forward to
How can I quote a variable to use in a regex?
Up to
the perlfaq6 manpage