regex - Replacing '(' with '( ' if it's not inside quotes -
let's have text this:
(what) and
"(what)" i'm trying replace ( ([space] if it's not inside quotes.
after substitution first string should this:
( what) and second string shouldn't changed.
i tried [^"]\([^"] didn't work.
you can using lookarounds.
you can use regex:
^(?!").*(\() btw, can use discard technique:
.*?".*?".*?|(\()
Comments
Post a Comment