Skip to content

Instantly share code, notes, and snippets.

@zengargoyle
Created August 5, 2017 10:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save zengargoyle/8995cffb6a495f53d3fecfce8c26f43f to your computer and use it in GitHub Desktop.
my rule numbers { [ <[0..9]>* ]* % ',' }
my rule numlist { '[' ~ ']' <numbers> }
say "[1,12]" ~~ /<numlist>+/;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment