Regular Expressions 101

i18next Resource key

Open Workspace
  • PCRE2 (PHP)
  • Match
0

Regular Expression

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

Description

This regex matches i18next library resource keys

Submitted by Anonymous