Forum Moderators: coopster
I want to do this
$file = str_replace("<SCRIPT>","STARTSCRIPT",$file);
but it doesn't look at <script> in lower case. How can I include the lower-case string as well as the upper-case string?
Turbo
preg_match('/\<title\>(.+?)<\/title\>/is',$file,$title);
I also want to check for <TITLE>?
I'm getting a "Call to undefined function: str_ireplace()" error. Str_replace works fine though although it's case-sensitive.
So how about... $file = preg_replace("/<SCRIPT>/i","STARTSCRIPT",$file);
BTW, regex is my Achille's heel.