Community Patterns

Community Library Entry

2

Regular Expression
Created·2015-08-07 05:52
Flavor·Python

r"
[\w'-.]+\w|[\w'-]+\s*
"
Open regex in editor

Description

Matches words without external punctuation but with internal punctuation.

Submitted by anonymous