Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Regex capturing

by manoj_speed (Vicar)
on Apr 06, 2009 at 13:21 UTC ( #755717=note: print w/ replies, xml ) Need Help??


in reply to Regex capturing

In Unix system the double quotes will expand the $1, so you may not get the actual output that you required.

You can use single quotes or escape the $1(in double quotes) to solve this.

But you can also achieve this using this simple method also.(substitute loo with lo (for this requirement/string. But it won't be nice for bigger match)).

--
The wisest mind has something yet to learn.


Comment on Re: Regex capturing

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://755717]
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: (6)
As of 2015-07-30 10:52 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 (271 votes), past polls