On Friday, February 28, 2014 1:31:30 PM UTC, Guilherme wrote: > > 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. > > The standard advice would be to not use regular expressions - use an html parser like nokogiri.
Fred > 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/87076399-af00-4841-b639-1aae845f076a%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

