Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
Python

r"
[\w'-.]+\w|[\w'-]+\s*
"

Description

Matches words without external punctuation but with internal punctuation.

Submitted by anonymous - 9 years ago