I need to grab the value of a variale found in a javascript file. Using xmlhttprequest I can get the page's source, however, I need a regular expression to grab the value of a few variables located within the file.
I want to grab the value of a variable:
var VARIABLE_NAME = VALUE
I tried this regular expression:
/var VARIABLE_NAME \=/
But I think I am missing what needs to be done for getting what's after the equal sign.