extract line from ajax call
http://stackoverflow.com/questions/4057693/extract-line-from-javascript/4057775
by FloEdelmann
JavaScript
ajax_data = "jQuery(function () { jQuery('#dealCountdown').countdown({ \n\
until: new Date(2010, 10 - 1, 31, 23, 59, 59), \n\
serverSync: serverTime, \n\
timezone: +11, \n\
compact: true, \n\
format: 'HMS', \n\
expiryUrl: BASE, \n\
layout: '";
importantline = "" + ajax_data.match(/until:\s.*,/);
importantline = importantline.replace(/^until:|,$/gi, "");
alert(importantline);