I want to search a string picked from .txt file for numbers enclosed in double quotes. I am doing all this with Excel macros. Example data:
"08134789316498"
"022"
My code:
Set oRegex1 = CreateObject("VBScript.RegExp")
oRegex1.Pattern = "(\"[0-9]+\"])"
But the above line is giving error:
"Compile Error: Expected end of statement"
Note: I have already added references to "Microsoft VBScript Regular Expressions 5.5" and "Microsoft VBScript Regular Expressions 1.0"