Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: regex search for words with one digit

by AnomalousMonk (Bishop)
on Sep 21, 2020 at 18:25 UTC ( #11122016=note: print w/replies, xml ) Need Help??


in reply to Re: regex search for words with one digit
in thread regex search for words with one digit

/\b[^\W\d]*\d[^\W\d]*\b/

Note that this matches the name '1'.


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^3: regex search for words with one digit
by tybalt89 (Prior) on Sep 21, 2020 at 18:45 UTC

    Rereading the spec, the name '1' is valid. :)

    If the spec is changed, I'll change my regex, but it will cost extra...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11122016]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2021-04-13 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?