Regular Expressions 101

Community Patterns

1...456

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