Implemented modifiers in regular expressions