Conditions for regular expressions added.