Regular Expressions 101

Community Patterns

Correct Sentence

0

Regular Expression
ECMAScript (JavaScript)

/
^[A-Z].*\.$
/
gm

Description

A string is said to be a correct sentence if it starts with the capital letter and ends with a full stop

Submitted by anonymous - 5 years ago