PatternOptionHandler plus unit test and error strings

This is a SPI I'm adding to almost every project of mine to support Java regular expressions ... hope anyone else finds it useful :-)