Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How do I select text between two bits of text?

by vinian (Beadle)
on Dec 04, 2011 at 07:13 UTC ( [id://941607]=note: print w/replies, xml ) Need Help??


in reply to How do I select text between two bits of text?

1. since '/' appears in the match string, you shoule use some other delimiters make it easy to read, such as m{...};
2. your regex didn't end, i only see the triple '/', it should be four in there.
I think you can try this regex
$SFS =~ m{<a name="([^"]+?)</a></big>}
Meanwhile, cpan can ease you work, follow GrandFather 's advice

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-20 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found