RE: [PHP] Parsing the media string
preg_match("/^\\\\0([a-zA-Z]+)\\\\01\\\\0(.*?)\\\\0(.*?)\\\\0(.*?)\\\\0(.*?)\\\\0(.*?)\\\\0(.*?)$/", $psm, $ico_match);
Note the quadruple backslashes.
Explanation: In JScript, the backslash is used to escpace certain special characters that are otherwise unprintable. To print a backslash therefore, you need to escape that too i.e. \\. So, for a double backslash, both need escaping, so \\\\.
This post was edited on 08-23-2006 at 11:00 AM by RaceProUK.
|