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

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -