Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Regex only returning partial data

by Grey Fox (Chaplain)
on Jun 06, 2008 at 20:18 UTC ( #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? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2022-08-18 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?