samedi 27 juin 2015

fetch attribute of tag using curl request without domDocument in php using regex only

i have URL : https://mobile.twitter.com/session/new

want to find <meta name="csrf_id" content="ce7754058e42523e84e0443138f28f33"> and want to fetch only ce7754058e42523e84e0443138f28f33 value as output. content value may change according to your browser.

I dont want to use domDocument i have to do with regex only

Note : you have to open this URL in mozilla firefox only then only you will find <meta name="csrf_id" content="ce7754058e42523e84e0443138f28f33"> you wont be find this tag in any other browser

Aucun commentaire:

Enregistrer un commentaire