If someone needs the answer to my question, here are the patterns to use:
Number: ^2b[0-9abcdefABCDEF]+2f545950453d504c4d4e$
Url: ^68747470[0-9abcdefABCDEF]+00$
And here is the application to the MMS Pdu:
public String getNumber(String pduString)
{
Pattern p = Pattern.compile("^2b[0-9abcdefABCDEF]+2f545950453d504c4d4e$");
Matcher m = p.matcher(pduString);
return m.find() ? m.group(1) : "";
}
public String getUrl(String pduString)
{
Pattern p = Pattern.compile("^68747470[0-9abcdefABCDEF]+00$");
Matcher m = p.matcher(pduString);
return m.find() ? m.group(1) : "";
}
Please let me know if you have any trouble with this code.
PS: You may need to add +
to the number to get it on the internation format and http://
to the url.