Skip to content

Instantly share code, notes, and snippets.

@ronaldxs
Created October 2, 2015 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronaldxs/e19a8501839e76b4ac35 to your computer and use it in GitHub Desktop.
Save ronaldxs/e19a8501839e76b4ac35 to your computer and use it in GitHub Desktop.
my token hexlet { <[A..F]> };
say so 'A' ~~ /<hexlet>/;
say so 'A' ~~ /<- [A..F]>/;
say so '.' ~~ /<- alpha>/;
say so 'A' !~~ /<hexlet>/; # need substituion and !~~ won't work substitution
say so '.' ~~ /<- hexlet>/;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment