Can someone help me to find the job id from the text below:
$search_string = '/jobs/17 has no compatible crew with sufficient capacity (job: 304390)';
I have tried the following but did not have any luck:
preg_match("/\[job: ([A-Za-z\/]+)\]/", $search_string, $match);
print_r($match) --showing empty
\[and\]? There don't appear to be any[]s in your string. Also[A-Za-z\/]would look for alpha characters or a backslash, what do you want to match, the17, the30, or both?