Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Extract a string

by ikegami (Patriarch)
on Sep 04, 2008 at 10:31 UTC ( [id://708987]=note: print w/replies, xml ) Need Help??


in reply to Extract a string

I presume what you want is to determine what's between the include tags, ignoring the leading '$CONFIGURATION_PATH$/'.

my ($desired) = $original =~ m{^<include>\$CONFIGURATION_PATH\$/(.*)</include>$};

Update: Removed stray slash in regexp.

Log In?
Username:
Password:

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

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

    No recent polls found