I want to get "bla bla bla" from this string
jQuery('#showcasecities').html("bla bla bla");
I've tried
preg_match_all("/jQuery(\'#showcasecities\').html(\"([^`]*?)\");/", $string, $matches);
no luck =( please help!
I want to get "bla bla bla" from this string
jQuery('#showcasecities').html("bla bla bla");
I've tried
preg_match_all("/jQuery(\'#showcasecities\').html(\"([^`]*?)\");/", $string, $matches);
no luck =( please help!
You need to escape the parenthesis. Instead, try this
preg_match_all("/jQuery\(\'#showcasecities\'\).html\((\"(.*?)\")\);/", $string, $matches);