how to detect a word/phrase written between double quotes using regular expression . if the same word is written outside the double quotes it should not be considered.
Some test cases:
dim a as string = " test" ( test should be detected)
dim a as string = "abc test xyz" ( test should be detected)
dim test as string = "abc" ( test should not be detected)
dim str as string = "select id from " & test & "where place" (test should not be detected)
Below regex tested, but didn't worked :
"([^"]*test)"
"(.*test?)"
"(.*test.*?[^\\])"
\"([^\"]*?test[^\"]*?)\"
Is there any option to find text inside double quotes?