Regular Expressions 101

Community Patterns

Word separator

1

Regular Expression
ECMAScript (JavaScript)

/
[\s.,\/\(\):\n]+
/
g

Description

This regexp can be used to separate words in common text.

Submitted by Rafael Salazar - 8 years ago