diff --git a/parsecsv.lib.php b/parsecsv.lib.php
index <HASH>..<HASH> 100644
--- a/parsecsv.lib.php
+++ b/parsecsv.lib.php
@@ -825,7 +825,7 @@ class parseCSV {
                 $this->file = $file;
             }
 
-            if (preg_match('/\.php$/', $file) && preg_match('/<\?.*?\?>(.*)/ms', $data, $strip)) {
+            if (preg_match('/\.php$/i', $file) && preg_match('/<\?.*?\?>(.*)/ms', $data, $strip)) {
                 $data = ltrim($strip[1]);
             }
Added accidentally removed regex modifier i