added check for modified to regular expression