Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
shmem seeks a tate and smikes a pope
shmem .oO( Ca n'est pas un pipe )
[shmem]: ah well. goodn.(1<<3) folks

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2017-03-28 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (342 votes). Check out past polls.