I wrote a regular expression to match all the double quoted strings in the source code but excluding those which are initializers to const declaration.
My expression was
The first group is const declaration of string type. Second is used to match double quoted strings capable of handling escape sequences.
If i simple run a match using second group, all the strings are matched. But if i use the entire expression, it provides me all the characters between the end double quote of last string and first double quote of next string.
View Complete Post