Basically I want to strip the document of words between blockquotes. I’m a regular expression newb and even after using rubular, I’m no closer to the answer.
Any help is appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use an HTML parser and forget regular expressions. Regex is incapable of correctly handling HTML.
From: Strip text from HTML document using Ruby
There are more examples of how to use Nokogiri and XPath, if you look around.