I have the following regular expression:
SOMETHING(.*?),(1|0)\\);
It needs to match SOMETHING then anything, then a comma, then 1 or 0 followed by ); but for some reason the last bracket isn't being matched, an example string:
SOMETHINGdfsdfdsfd dsffdsdf dfsfds FEHEF777a ,0);
the bold part is the ending. Am I escaping the ) wrong? \ should work...
example php where $o is my string
preg_match_all('%INSERT INTO (.*?),(1|0)\);%sm', $o, $matches);