Regular Expressions 101

Community Patterns

Separate words in sentence

1

Regular Expression
PCRE (PHP <7.3)

/
\b([\w+\']+)\b
/
g

Description

Separate words in sentence

Submitted by Elijah Mwangi - 8 years ago