Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Regex only returning partial data

by Grey Fox (Chaplain)
on Jun 06, 2008 at 20:18 UTC ( [id://690755]=note: print w/replies, xml ) Need Help??


in reply to Regex only returning partial data

Thanks all

I used all of your advice and came up with the following regex that does the trick.

m|<title>GRP\-\d{1,3}(?:\-\d{1,3})?(?:\s)?(?:\-\s)?(.*?)</title>|

The use of the (.*?) instead of the group set and {1,75} makes it a little less greedy.

Thanks again for all your help.

-- Grey Fox
"We are grey. We stand between the darkness and the light" B5

Log In?
Username:
Password:

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

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

    No recent polls found