I don't know where i'm making mistake. Please Help.
preg_match_all('`(?:[^,"]|"((?<=\)"|[^"])*")*`x', $string, $result);
What will be the correct line?
I don't know where i'm making mistake. Please Help.
preg_match_all('`(?:[^,"]|"((?<=\)"|[^"])*")*`x', $string, $result);
What will be the correct line?
You did not escape the backslash:
preg_match_all('`(?:[^,"]|"((?<=\\)"|[^"])*")*`x', $string, $result);
Or, if you don't intend to match a backslash at all, you then have to omit it completely:
preg_match_all('`(?:[^,"]|"((?<=)"|[^"])*")*`x', $string, $result);