sublimetext3 - Regex to find text inside parenthesis -
i have mismatched quotes (single , double) around string literals.
i need match quotes single quotes.
i trying replace following:
route('any text can here , special characters")
with:
route('any text can here , special characters')
i have tried following regex:
find
route('(.*?)")
replace
route('(.*?)')
but not work.
how can achieve trying do?
your regex doesn't work because can't match literal (
character trying match on (
because character has special meaning in regex (for example, used in capture portion of regex use in replacement).
in order match that, need quote special characters regex knows mean match literal:
find:
route\('(.*?)"\)
Comments
Post a Comment