Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Parsing a Word placed between special characters

by Laurent_R (Vicar)
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+/;


Comment on Re^2: Parsing a Word placed between special characters
Download Code

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 cooling their heels in the Monastery: (10)
As of 2014-08-23 12:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (173 votes), past polls