Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^4: word with some number in between

by Anonymous Monk
on Jun 29, 2013 at 11:33 UTC ( #1041452=note: print w/replies, xml ) Need Help??

in reply to Re^3: word with some number in between
in thread word with some number in between

but since /0-9/ can be anywhere in the word , not necessarily in beginning or end

Replies are listed 'Best First'.
Re^5: word with some number in between
by hippo (Monsignor) on Jun 29, 2013 at 12:02 UTC

    Precisely. eg.

    $ perl -e 'print "Matched.\n" if "foo8baz" =~ /[0-9]/;' Matched. $ perl -e 'print "Matched.\n" if "foobaz" =~ /[0-9]/;'

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041452]
[Eily]: yes I know, native English speakers are actually a minority among English speakers :)
[LanX]: a friend of mine learned French with her African boyfriend ... I have to force my stop grinning when I hear a little blonde who adopted that accent
LanX .oO( *you* don't exist, I'm only messaging to *me* self)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2017-03-27 16:28 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.