Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Parsing a Word placed between special characters

by Laurent_R (Canon)
on May 02, 2013 at 11:52 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1031740]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-19 03:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found