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

Sort a complex associative array in PHP -

c++ - Fill edges and center of array/vector with different values -

sql - calculate weighted average for each day and id based on time intervals in PostgreSQL -