I want to remove anything between simple quotes in a string from a file:
$file = file_get_contents("myfile");
preg_replace("/(')(.)*?\1/", "", $file);
The regex works on http://regexr.com/ but has no effect in php. There are many occurrence in the file.
Is there something special about the quotes because they are from a file ? What would be the process and why is mine not working ?