What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [PHP] Parsing the media string

[PHP] Parsing the media string
Author: Message:
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
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.
[Image: spartaafk.png]
08-23-2006 10:59 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[PHP] Parsing the media string - by Matti on 08-23-2006 at 10:05 AM
RE: [PHP] Parsing the media string - by RaceProUK on 08-23-2006 at 10:59 AM
RE: [PHP] Parsing the media string - by Matti on 08-24-2006 at 07:45 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On