How can i get the blogid from a given blogspot.com url?
I looked at the source code of the webpage from a blogspot.com it looks like this
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.blogger.com/rsd.g?blogID=4899870735344410268" />
how can i parse this to get the number 4899870735344410268
Use
DOMDocumentto parse the document and then use its methods to retrieve the wanted element.I cannot stress this enough: never use regular expressions to parse an HTML document.
Example use: