Forum: Ruby on Rails Help with Regex

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Kim (Guest)
on 2008-10-30 22:31
(Received via mailing list)
page.body.scan(/\<\/tr\>\n\<\/form\>\n\<tr\>\n(.*)\<\/tr\>/mi) gets
half the results
page.body.scan(/\<\/tr\>\n\<tr\>\n(.*)\<\/tr\>/mi) gets the other half

I need help writing the reg ex that gets all the results.

Thanks in advance.
Kim (Guest)
on 2008-10-31 00:21
(Received via mailing list)
I got it. page.body.scan(/\<\/tr\>\n[\<\/form\>\n]*\<tr\>\n(.*)\<\/tr
This topic is locked and can not be replied to.