i need help with this regex pattern. I have tried many different patterns but none return anything. I always get an empty array. The following patterns return no results.
//test 1
$regex = '/linkDestUrl = \'(.*)\'/';
//test 2
$regex = '@^(?:\s)*(linkDestUrl = \'(.*)\');@mi';
to match this
linkDestUrl = 'http://www.google.com';
if its that simple, this should work:
Try it out on http://regex.larsolavtorvik.com/