P is for Practical | |
PerlMonks |
Re: regex search for words with one digitby haj (Vicar) |
on Sep 21, 2020 at 16:08 UTC ( [id://11122009]=note: print w/replies, xml ) | Need Help?? |
Digits are, in Perl regular expressions, word characters. If you want to exclude digits, you can use character classes: Either those defined by POSIX (only if you don't have Unicode characters), or using Unicode properties in a recent Perl. Here's a Unicode-aware example:
In Section
Seekers of Perl Wisdom
|
|