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

Popular posts from this blog

python - Alternative to referencing variable before assignment -

vb.net - How to ignore if a cell is empty nothing -

Sort a complex associative array in PHP -