23698Re: \W and underscore
- Mar 16, 2013--- In firstname.lastname@example.org, "John Shotsky" <jshotsky@...> wrote:
>What about the POSIX Character Class '[[:alnum:]]'? It matches numbers and letters (including characters with diacritics) but not the underscore.
> Yet again, I've learned the hard way that \w, which is supposed
> to mean letters and numbers, includes the underscore [_],(...)
> This presents a bit of a problem when one uses \w virtually
> everywhere expecting it to only pertain to actual letters and
> I DO hope the developers of PCRE will address this problem.It's a rule that goes back to the history of Perl. So, probably, the PCRE developers won't feel affected by this issue.
- << Previous post in topic Next post in topic >>