in reply to Re: regex search for words with one digit
in thread regex search for words with one digit
/\b[^\d\s]*\d[^\d\s]*\b/
/\b[A-Z]*\d[A-Z]*\b/i
Note that these match the name '1'.
Update: Note also that [^\d\s] matches stuff like % & = - / .
Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom