Fix #1

regex_iterator apparently will get stuck on an empty-match. I added a 'break' to detect when we hit the end of line rather than infinitely matching against it.

Second, there was a unit test failure related to option groups without newlines between them. I adjusted the regex to account for that.

Third, a simple warning fix.