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.
g means global, so instead of matching the first x or first o, it match all the x and o in the string. i meaning case insensitive, it will match both upper case X/O and lower case x/o.
same quastion
g is global checking, so matching for all cases and not the first case
i is for case-insensitive, by default regex is case-sensitive so haveing an i turns off case-sensitive mode
This comment is hidden because it contains spoiler information about the solution
Very nice. I wonder if it's the most efficient in Big O
This comment is hidden because it contains spoiler information about the solution
Copy and paste that in regex101
/x/gi
what does the "gi" mean?i dont understand the code, and ofc i failed the task lol