# Help with Regex

**URL:** <https://www.ruby-forum.com/t/help-with-regex/152178>\
**Category:** Rails\
**Created:** [October 30, 2008, 9:31pm UTC](https://www.ruby-forum.com/t/help-with-regex/152178 "2008-10-30T21:31:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/9f8e36/32.png) [@kim](https://www.ruby-forum.com/u/kim)\
**Post date:** [October 30, 2008, 9:31pm UTC](https://www.ruby-forum.com/t/help-with-regex/152178/1 "2008-10-30T21:31:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/9f8e36/32.png) [@kim](https://www.ruby-forum.com/u/kim)\
**Post date:** [October 30, 2008, 11:21pm UTC](https://www.ruby-forum.com/t/help-with-regex/152178/2 "2008-10-30T23:21:47Z")

</div>

I got it. page.body.scan(/\</tr\>\n[\</form\>\n]_\<tr\>\n(._)\</tr  
\>/mi)  
thanks.
