Hi all,
I'm trying to capture from the following string:
var MyCode = "jdgsrtjd";
var ProductId = 'PX49EZ482H';
var TempPath = 'Media/Pos/';
What I'd like to get is the variable length value between the single quoted ProductId value
PX49EX482H
I had this, and I think it is close, but the single quotes are tripping me up. I'm not sure how to escape them properly.
preg_match('/var ProductID ='(.*?)';/', $str, $matches);
Thanks in advance!