BOL (^) and EOL($) decorators breaking the regex