Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Parsing a Word placed between special characters

by Laurent_R (Abbot)
on May 02, 2013 at 11:52 UTC ( #1031740=note: print w/replies, xml ) Need Help??


in reply to Re: Parsing a Word placed between special characters
in thread Parsing a Word placed between special characters

Again assuming the explored string is in the $_ special variable, the words between square brackets can be retrieved as follows:

$name = $1 if /\w+\[(\w+)\]\w+/;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2016-09-30 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (566 votes). Check out past polls.