Ruby on Rails Friday, February 28, 2014

Hi,

I need to create a regex to extract 4 paragraphs of a text:

<p>
<b>Topic </b>–
abc
</p>


<p>abcd</p>
<p>abcde</p>
<p>abcdef</p>
<p>abcdefg</p>


I need to extract 4 paragraphs (text inside <p></p> including some html code) of this text using a regex.

How can I solve this problem ? I've tried a lot but I cant do this.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a3b9446e-e67f-4c9e-aedc-d0c1b14d5f5d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment