This is a read-only archive of Feast upon the Word, frozen in October 2026. Editing is closed.

Site:Developer stuff/Fix rss titles

The following seems to be working for now, but obviously it will mess up either if there is the word by in the user name or in the title. I haven't tested which one is going to cause the problem but my guess it is the user name--i.e. that the regular matching expression will prefer the last "by".

     if (preg_match("/^Comment on(.*)by(.*)/", $title, $matches)) {
       $title = $matches[2]." on ".$matches[1];
     }