Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^[a-zA--яА-Я0-9]*(-)?(?:[a-zA--яА-Я0-9])*$
/
gm

Description

Only one special character ("-") is allowed when entering a word

Submitted by anonymous - 2 months ago