Regex for Instagram image id
Please can somebody quick write me a regex to get id from embeded code!
<iframe src="//instagram.com/p/0123456789/embed/" width="612"
height="710" frameborder="0" scrolling="no"
allowtransparency="true"></iframe>
var regex = /src=['|"]//instagram.com/p/(.*?)/embed/['|"]/;
Can't make it to work..
Tnx alot!
No comments:
Post a Comment