Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2018-07-04 17:21
Flavor·PCRE (Legacy)

/
([^\W_]+[^\s,]*)
/
gm
Open regex in editor

Description

This will match all words.

Including: Hyphenated words. Words ending in periods/full-stops. Number sequences.

It will ignore: commas.

Submitted by anonymous