Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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: (9)
As of 2014-12-23 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (135 votes), past polls