Regular Expressions 101

Community Patterns

This regex checks to see if any lowercase letter is found after

1

Regular Expression
ECMAScript (JavaScript)

/
[\.\?\!]\s*[a-z]
/

Description

  1. First rememeber to escape .?! with a \
  2. Square brackets mean "any of the characters inside us"
  3. \s* mean "0 or more spaces after the previous characters"
  4. [a-z] mean "any character in the set from a to z that is in lowercase"
Submitted by Giuseppe Tavella - 8 years ago