[Rails] Help with regex and tag

2014-02-28 Thread Guilherme
Hi, I need to create a regex to extract 4 paragraphs of a text: Topic – abc abcd abcde abcdef abcdefg I need to extract 4 paragraphs (text inside 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.

[Rails] Help with Regex

2008-10-30 Thread Kim
page.body.scan(/\<\/tr\>\n\<\/form\>\n\\n(.*)\<\/tr\>/mi) gets half the results page.body.scan(/\<\/tr\>\n\\n(.*)\<\/tr\>/mi) gets the other half I need help writing the reg ex that gets all the results. Thanks in advance. --~--~-~--~~~---~--~~ You received this m

[Rails] Help with regex needed

2008-10-21 Thread Kim
Hi here is the array I am scanning: ["\n The Academic Writer: A Brief Guide\n\n\n Ede, Lisa\n\n\n\n Valley Reserves -- VR 282 -- AVAILABLE\n\n\n\n \n\n\n\n\n Cultural literacy : what every American needs to know / E.D. Hirsch, Jr. ; with an appendix, What li\n\n\n Hirsch, E. D. (Eric Donald), 192

[Rails] Help with regex needed

2008-10-21 Thread Kim
Here is the array I am scanning: ["\n The Academic Writer: A Brief Guide\n\n\n Ede, Lisa\n\n\n\n Valley Reserves -- VR 282 -- AVAILABLE\n\n\n\n \n\n\n\n\n Cultural literacy : what every American needs to know / E.D. Hirsch, Jr. ; with an appendix, What li\n\n\n Hirsch, E. D. (Eric Donald), 1928-\