Forum: Ruby on Rails Help with Regex

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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
\>/mi)
thanks.
This topic is locked and can not be replied to.