Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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
Replies are listed 'Best First'.
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 imbibing at the Monastery: (10)
As of 2015-07-30 18:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls