preg match all line 3 to line 6 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