Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: match whitespace or beginning/end of string

by AnomalousMonk (Archbishop)
on Oct 30, 2009 at 18:05 UTC ( [id://804201]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -wMstrict -le
    "my $pre  = qr{ \A | \s }xms;
    ...
    [bar='555'] matches [ bar='555']
    [barfoo='987'] matches [ barfoo='987' ]
    [foo='987'] matches nothing
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found