Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Can you explain what the '?:' in the beginning and the '\Z' in the end do?
if you want to solve this kata with re module,
remember that in regex
you should be really carefull with '^' and '-',
especiall when it comes to the case of Square brackets('[]'),
'^' CANNOT be at the HEAD of a regex, BUT it can be '^' or in other part of a regex,
as well as
'-' CANNOT be in the MIDDLE of a regex, BUT it can be at the HEAD,
which is the most vital part you should have known.