<?php
$string = 'This is a test, Stackoverflow. 2014 Cecili0n';
if(preg_match("~(This)(?:.*?(Stackoverflow)|.*?)~i",$string,$match))
PD9waHAKCiRzdHJpbmcgPSAnVGhpcyBpcyBhIHRlc3QsIFN0YWNrb3ZlcmZsb3cuIDIwMTQgQ2VjaWxpMG4nOwoKaWYocHJlZ19tYXRjaCgifihUaGlzKSg/Oi4qPyhTdGFja292ZXJmbG93KXwuKj8pfmkiLCRzdHJpbmcsJG1hdGNoKSkKICAgIHByaW50X3IoJG1hdGNoKTsK