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.
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
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
global
ignore case
This comment is hidden because it contains spoiler information about the solution
Copy and paste that in regex101