I am trying to use preg_match to extract some data from some html. I want to get the number from the following line of an Ajax call
new Ajax.Request('/selectdata/new/get_ids?id=687420'
So, I have used the following PHP
preg_match('new Ajax.Request\(\'/selectdata/new/get_ids\?id=(.+?)\'', $buffer, $matches)
I get the message "preg_match(): Delimiter must not be alphanumeric or backslash"
I have tried lots of variations, but no success.