how to match space at the end of stirng in regular expressin code example Example: php preg match space or start of string /\b(stackoverflow)\b/