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 (Archbishop) 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]/;'