Changed regex to prevent wasted PREG searching and backtrack deaths.