PHP regular expression to extract title was silently failing

Because the string was too long. The solution was not to use
a regular expression to do the same thing.
Fix capitals