I need a PHP Regex that can parse .strings files. In particular, it needs to be able to handle comments, blank lines, escaped characters and angle brackets.
Example of a .strings file:
/* string one */
"StringOne"="\"1\"";
"StringTwo"="<2>";
/* Bob Dillon */
"Bob"="Dillon";
By request, the desired output would be something such as:
Array( [StringOne] => "\"1\"" [StringTwo] => "<2>" [Bob] => "Dillon" )
All help is greatly appreciated!