regex - Getting data between two strings in jQuery -


i working on project includes scraping data social media service - instagram. managed retrieve source code using:

            $.ajaxprefilter( function (options) {           if (options.crossdomain && jquery.support.cors) {             var http = (window.location.protocol === 'http:' ? 'http:' : 'https:');             options.url = http + '//cors-anywhere.herokuapp.com/' + options.url;             //options.url = "http://cors.corsproxy.io/url=" + options.url;           }         }); 

and $.get('https://www.instagram.com/manchesterunited,

i have source file , need informations such title, description, image link. need in line: http://pastebin.com/zh0mpgtu

i googled how retrieve data between 2 strings , can't manage it. example profile full name between "full_name": " , ",. tried many many ways failed, here 1 of methods tried: var title = data.match('"full_name": "(.*)",');.

'"full_name": "(.*)",' take until last ",

what need non-greedy version (*?): '"full_name": "(.*?)",' should solve issue. question mark, marks * or + non-greedy.


Comments