Regular Expressions 101

Community Patterns

i18next Resource key

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 - 2 years ago (Last modified 2 years ago)