Regular Expressions 101

Community Patterns

1...56789...747

Separate words (works with spaces, dashes and underscores)

5

Regular Expression
PCRE (PHP <7.3)

/
([^\W_]+[^\s-]*)*
/
g

Description

no description available

Submitted by marcoslhc - 9 years ago