Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Matching set of paragraph tags with string inside.

by jepri (Parson)
on Feb 09, 2008 at 00:11 UTC ( #667114=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Matching set of paragraph tags with string inside.
in thread Matching set of paragraph tags with string inside.

You seem to be a bit focussed on using big regexes :P

map { s/<P>// } grep { /\[tab\]/ } split /<\/p>/, $string;

___________________
Jeremy
I didn't believe in evil until I dated it.


Comment on Re^3: Matching set of paragraph tags with string inside.
Download Code
Re^4: Matching set of paragraph tags with string inside.
by Roy Johnson (Monsignor) on Feb 11, 2008 at 18:44 UTC
    I think you should try this out. It doesn't do what you think it does.

    Caution: Contents may have been coded under pressure.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2014-10-01 13:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (21 votes), past polls