Are there unit tests that check various expressions to see if this works? I tested [online](http://www.regexplanet.com/advanced/java/index.html) and it appears to work well, but it'd be nice to have unit tests. (Maybe I just missed them?) You may want to a static utility for lines 433-437 that can be easily unit tested.