Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?:[a-z](?:[a-z0-9]|-(?!$|-))*\:?(?!$))?(?:[a-z](?:[a-z0-9]|-(?!$|-))*(?:\.(?!$))?)+$
/
gm

Description

This regex matches i18next library resource keys

Submitted by anonymous - 3 years ago (Last modified 3 years ago)