Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-07-28 08:48
Updated·2023-07-23 21:13
Flavor·ECMAScript (JavaScript)

/
^[A-Za-z]( ?[A-Za-z] ?)*$
/
g
Open regex in editor

Description

This will allow only one space after a word.And also do not start with a space.

Submitted by Rama Krishna