I have this bunch of code in a variable as string:
.... = 40; var posY = 40; MAX_727.moveTo(posX, posY); } MAX_727.location='http://one.cam4ads.com/www/delivery/ac.php?bannerid=727&zoneid=19&target=_blank&withtext=0&source=&timeout=0&ct0='; MAX_727.blur(); window.focus...
(I added dots at the begining and end to make it easier to read)
This code (which is being manipulated as string) contains a variable value, MAX_727.location.
How can I extract the value of that specific variable ?
You may use a regular expression :
Demonstration