I need to match strings that either quoted from the both sides or strings that do not have leading and trailing quote at all. I need to omit strings having single quote on the end - either leading or trailing quote.
Here are strings I have to match:
- "somecharsinside"
- somechars
I have not to match:
- "noquotefromtheright
- noquotefromtheleft"
I am trying something like this: ^\b.+|^\".^\"\b$