Welcome to WebmasterWorld Guest from 220.127.116.11
I am trying to get the data between all occurrences of "Apply for this position (" and the closing parentheses.
The first problem is that it only seems to be trying to find one match.
Second, it is returning an array with the full "Apply for this position (Truck Driver)" as $match and the data I actually want "Truck Driver" as $match
I would prefer to put only the data I need into the array so that it would look like:
$match = Truck Driver
$match = Machine Operator
and so on
My code is below, I have tried adding the g modifier, as well as preg_match_all to resolve the single match problem to no avail. I get an error stating unknown modifier g.
$regex = '/Apply for this position \((.+?)\)/';
Thank you in advance for your time and help.