regular expression: "^\"[^\"\\\r\n\t]*(\\.[^\"\\\r\n\t]*)*\"$"
I working on parsing strings in a file. I have stored all the strings in an array and using the above given pattern to parse the strings(using the ereg function in PHP).
1)My strings should be within double quotes.
2) There should be no other double or single quotes inside the string.
3) But there can exists \" or \' or \ in the string.( the double or single quotes can exists wih a backslash).
4) There should be no tabs inside the double quotes of the string.
5) The string may also be UTF8 characters (any language strings including asian languages).
The above pattern works fine when I try them in the RegexBuddy which is a regular expression tool. But is not working in my code.
Thanks in advance.