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
Been Using this Function for some time and works real well with two exceptions 1. if the title line has a CR in it it will no get the title Example: This is a bad Title 2. If there are any other < > tags in the title it will fail. ([^<]*)(.*)', $string, $regs ) )