Regular Expressions 101

Community Patterns

Sentence

0

Regular Expression
Python

r"
(?:[^ ,?\\]*([^ ,?\\])[ ,?\\]+(?:(?=\1))+)+[^ ,?\\]+
"
g

Description

Matches every sentence in your string

Submitted by anonymous - 6 years ago