^(\'|").*?\\1$ matches a quoted string with any content, as long as opening and closing quotes are the same. I would like it not to match when the input co
^(\'|").*?\\1$