I have a URL:
https://my.site.com/u/0/ac?export=download&confirm=45vy&id=qNhdhk1jejhXLexLpY3RiDY2oamis">D
And I want to match it using preg_match_all. My regex expression is:
preg_match_all('/(https:\/\/my\.site\.com\/[u]\/[0]\/(ac)\/(?)\/.*\">D)/', $input_lines, $output_array);
But I am not able to match special character ? in above code. I tried using (?). But it is not matching. I know it maybe a lame question, but if anyone could help me in matching ? or in escaping ? in preg_match_all, that would be helpfull.