Fixed invalid regular expressions