Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

${^MATCH} regex special variable(s) and /p regex modifier

by AnomalousMonk (Abbot)
on Oct 04, 2011 at 00:47 UTC ( #929430=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -wMstrict -le
    "my $s = '----abc123++++';
    ...
     print qq{'${^PREMATCH}' '${^MATCH}' '${^POSTMATCH}' ($1) ($2)};
    "
    '----' 'abc123' '++++' (abc) (123)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://929430]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2014-10-25 19:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (148 votes), past polls