Regular Expressions 101

Community Patterns

Your search did not match anything

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 - 4 months ago