<?php

$string = 'This is a test, Stackoverflow. 2014 Cecili0n';

if(preg_match("~(This)(?:.*?(Stackoverflow)|.*?)~i",$string,$match))
    print_r($match);
