Skip to content

Instantly share code, notes, and snippets.

@brianmcallister
Created November 16, 2017 17:21
Show Gist options
  • Save brianmcallister/2b6e093aedb82a875e73923c20ff053a to your computer and use it in GitHub Desktop.
Save brianmcallister/2b6e093aedb82a875e73923c20ff053a to your computer and use it in GitHub Desktop.
\.(
[a-z]+
(-(?!-))?)+
(?:
__
([a-z]+(-(?!-))?)+
)?
(?:
--
([a-z]+(-(?!-))?
)+
)?
.a
.a-b__c
.a__
.a__b
.a--b
.a__b--c
.asdf__asdf--asdf
.a-b-c-d
.a__b__c
.a--b__c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment