Always try to parse the full regex pattern instead of stopping when the pattern parser fails.
Added regex end of line assertion.