Regex for string that starts but doesn't end with "

regex

Solution

You can use the regex:

^".*[^"]$

Explanation:

^     Start of line anchor
"     A literal "
.*    Any junk
[^"]  Any non " character
$     End of line anchor

Problem

Is there an option to write a regex that represents strings that start with `"` and don't end with `"` ?

Original source