RE: [PHP] I suck at regular expressions! -- not as bad, now

2001-11-15 Thread Richard S. Crawford
Thanks to everyone who helped me figure this out. I foolishly didn't realize that I was using the htmlspecialchars() function on the string that I was pulling from the file, but not accounting for that in the regexp. So, what I was getting was: BLAH BLAH BLAH but wh

RE: [PHP] I suck at regular expressions!

2001-11-15 Thread Brian Paulson
Sent: Wednesday, November 14, 2001 11:30 PM To: [EMAIL PROTECTED] Subject: [PHP] I suck at regular expressions! I am trying to get the title of an html file... you know, the string between the < title > and < /title > tags... Here is the function I've got so

[PHP] I suck at regular expressions!

2001-11-14 Thread Richard S. Crawford
I am trying to get the title of an html file... you know, the string between the < title > and < /title > tags... Here is the function I've got so far: function fileTitle($fileName) { $myFile = fopen($fileName, "r"); $myText=""; while (!feof($myFile)) {