Regular Expressions 101

Sentence Matcher

Open Workspace
  • JavaScript
  • Match
1

Regular Expression

/
((?:[A-Z]\.|[^\.!?])+)[\.!?]
/
g

Description

Matches sentences, but skips over abreviations

Submitted by Jonathan Mee