php get string at regular expression find code example Example: php preg match space or start of string /\b(stackoverflow)\b/