Hi,
I'm still learning PHP Regex so I'm hoping someone can help me with what I'm trying to accomplish.
$string = 'Writing to tell you that var MyCode = "dentline"; Learn it.';
What I'd like to do is match the part of the string which reads
var MyCode ="
After I match that part, I want to retrieve the rest of the dynamically generated characters that follow that string. In this example, [dentline] is 8 characters, but this may not always be the case. Therefore, I want to match all the way until I reach
";
After I've effectively captured that part of the string, I want to strip the string so the remaining information is what lies between the double quotes
dentline
Any help is much appreciated!