Warning: preg_match_all() [function.preg-match-all]: Unknown modifier 'l' in /var/www/test.php on line 9
It’s saying my regex has an unknown modifier, but I’m not sure what exactly is happening to trigger the error
preg_match_all("/\<select id\=\'subscription_division_id\'(.+?)</select>\/is", $html, $matches);
You are escaping wrong. For the regex parser, the following is your regex:
whereas
select>\/isis supposed to be the regexp modifiers (the regex string is enclosed in/). Given that thelin there is the first invalid modifier, you receive that error. So to fix that, you need to escape the slash in the closing tag. And btw. you are escaping quite a lot unnecessary things, this is enough: