Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 13th, 2013  |  syntax: None  |  size: 0.70 KB  |  views: 40  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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/['|"]
clone this paste RAW Paste Data