I am very new to CakePHP and not very familiar with regular expressions.
I need to use regex in CakePHP to check whether a string has a double quotes character, followed immediately by a comma, then followed by another double quotes character: ","
Here is my attempt: String::tokenize($problem_string, '/",/"');
I tried ($problem_string, ","), but that parsed the string at every place there was a comma. I also tried ($problem_string, "/",/""), with no luck.
This entry suggests using a backslash in front of the double quotes in Java, but maybe that rule doesn't apply for PHP or CakePHP? How to represent the double quotes character (") in regex?
I feel like this should be an easy problem to figure out, but I've been stumped for quite a while now.