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.
It's regex combined with a "replacement routine" offered by the C++ std lib . Have a look at https://en.wikipedia.org/wiki/Regular_expression. In short, it looks for anything which looks like (alphanumeric character)(maybe some more alphanumeric characters)(whitespace or end), and replaces the captured parts (in parentheses) as (maybe some more alphanumeric characters)(alphanumeric character)ay(whitespace or end). Imho, the last capture group should actually also include punctuation to work correctly.
This comment is hidden because it contains spoiler information about the solution