SHARE
TWEET

Untitled

a guest Nov 13th, 2013 41 Never
  1. <iframe src="//instagram.com/p/0123456789/embed/" width="612" height="710" frameborder="0" scrolling="no" allowtransparency="true"></iframe>
  2.  
  3.   var regex = /src=['|"]//instagram.com/p/(.*?)/embed/['|"]/;
  4.        
  5. <iframe src="//instagram.com/p/0123456789/embed/" width="612" height="710" frameborder="0" scrolling="no" allowtransparency="true"></iframe>
  6.        
  7. src="[^d]+(d+)
  8.        
  9. <iframe src="//instagram.com/p/0123456789/embed/" width="612" height="710" frameborder="0" scrolling="no" allowtransparency="true"></iframe>
  10.        
  11. iframes = document.getElementsByTagName('iframe');
  12. src = iframes[0].src;
  13. regex = /instagram.com/p/(d*)(.*)/;
  14. instagram_id = src.match(regex, src)[1];
  15.        
  16. src=['|"]//instagram.com/p/(.*?)/embed/['|"]
RAW Paste Data
Top