Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: regex to return line with name but not if it has a number

by shmem (Chancellor)
on Apr 03, 2017 at 13:50 UTC ( [id://1186826]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($line =~ m/\b-|b(^[A-Z][a-z]+\s[A-Z][a-z]+$+?!0-9)\|b/) {print "$l
    +ine";}
    
  2. or download this
    if ( $line =~ m/  # match
        \b-           # a word boundary followed by a -
    ...
        b             # the letter "b"
        ^[A-Z]        # a capital letter anchored at start of string
                      # ...wait, what? at the beginning?
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-16 05:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found