modified the regex modifiers to avoid the multiline case