lundi 19 septembre 2016

replace a pattern to extract an image url from data php

I am trying to figure it out how to extract the url from this patter

![enter image description here][1] [1]: http://ift.tt/2cCt0ei 

I just need the http part so I can place it inside an image tag. The image description could change, how can I do it with regex or preg_replace?

Aucun commentaire:

Enregistrer un commentaire