Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Regex a little less greedy please

by MZSanford (Curate)
on Mar 18, 2003 at 14:16 UTC ( #243980=note: print w/replies, xml ) Need Help??


in reply to Regex a little less greedy please

Parsing HTML/XML is somewhat tricky to do correctly (what with entities and all ... see Super Search for more info), but if you know that there will not be any >'s in the tag, you may want to use a regexp like ...
m/<[^>]+>/

from the frivolous to the serious

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://243980]
help
Chatterbox?
shmem feels uneasy over his guess of the tune for silent night, perl 6 night
[holli]: https://www. youtube.com/watch? v=6H_9QEc6vA8
[holli]: meh, silent night
[holli]: also sad
[shmem]: halluzination beats newspaper in realism, sometimes

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2017-09-22 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (269 votes). Check out past polls.

    Notices?