Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Split tags and words nicely

by themage (Friar)
on Dec 28, 2006 at 13:18 UTC ( [id://592035]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $a=q{<tag ref=1>Start<tag ref=2>and more</tag>and end</tag>};
    @l=split qr{(</?tag[^>]*>)}, $a;
    print join "\n", @l;
    

Log In?
Username:
Password:

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

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

    No recent polls found