Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: regex is not working properly

by wind (Priest)
on Jun 24, 2011 at 08:33 UTC ( #911205=note: print w/replies, xml ) Need Help??


in reply to regex is not working properly

Don't use greedy matching '.*', use non-greedy instead '.*?'

Also, I would suggest that you learn how to use an actual HTML Parser instead of jury rigging regex's.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://911205]
help
Chatterbox?
[jdporter]: wow! virtualsue made an appearance!
[jedikaiti]: Hello Monks

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (14)
As of 2017-09-26 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (296 votes). Check out past polls.

    Notices?