match everything regex php code example
Example 1: php preg match space or start of string
/\b(stackoverflow)\b/
Example 2: php preg_match
preg_match ( string $pattern , string $subject [, array &$matches [, int $flags = 0 [, int $offset = 0 ]]] ) : int