140620

1. line 170: magic number (as well as in other places)
2. line 171: you should make the Pattern a member of the class and only do 'compile' once (it's an expensive operation)