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 (Monsignor)
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 surveying the Monastery: (5)
As of 2015-07-29 03:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls