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 more so that it's matching the last instance of the thing you are looking for. Because, for instance, it won't match x if there is another x later on in the string, regardless of the characters in between. That's what (?!.*\1) is doing here - it's making sure that a match is not made when there is another x later on. In the context of this kata, then you can see it's actually helping us find only the last instance of each unique alphabet character.
does this regex mean that it matches any character? And when it finds a match it ignores all other matches in the string?
I tried running it in RegExr, and I got confused why it ignored "The" at the beginning of the string but matched 'the' elsewhere.
simmilar site - https://regex101.com/
This comment is hidden because it contains spoiler information about the solution
It hides your message for those who didn't solve the kata.
This comment is hidden because it contains spoiler information about the solution
Please use spoiler flag next time, or anyone is able to see your message from the dashboard.
This comment is hidden because it contains spoiler information about the solution
This is called or like state machine?
it's a minimalist solution :)))
This comment is hidden because it contains spoiler information about the solution
Can anyone tell me what (is ?!.*\1) mean?
Holly molly!