Test, validate and match regular expressions
Matches lines consisting solely of English letters (a-z, A-Z) and spaces, with a total length between 2 and 30 characters. With the multiline flag, each line is validated independently, making it useful for verifying person names in form fields or name lists. Note it will reject names containing hyphens, apostrophes, accents, or non-Latin characters.