Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: Looking for a regular expression for the following pattern.

by AnomalousMonk (Bishop)
on Mar 30, 2018 at 15:03 UTC ( #1212044=note: print w/replies, xml ) Need Help??


in reply to Re^3: Looking for a regular expression for the following pattern.
in thread Looking for a regular expression for the following pattern.

So  'a_________'  '%%a_____%%'  '123456789_' would be strings skooma would want to match? That wasn't my (limited) understanding after reading the OP.

c:\@Work\Perl\monks>perl -wMstrict -le "for my $s (qw(a_________ %%a_____%% 123456789_)) { print qq{'$s' matches} if $s =~ /[[:alnum:]]+[_]+/; } " 'a_________' matches '%%a_____%%' matches '123456789_' matches

Update 1: And what about the  { } curlies?

Update 2: And please use code tags when you post. Please see Writeup Formatting Tips and Markup in the Monastery.


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2022-08-07 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?