Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(^[^\-][a-zA-Z0-9-]{3,63}\.cz$)
/

Description

Valid only for something.cz, some-thing.cz, 2245exampl.cz ... Not-valid for -some.cz, here.com.cz ...

Submitted by Pavel Ondřej - 10 years ago