Question: what is gi in regex?
Answer: Definition and Usage The gi modifier is used to do a case insensitive search of all occurrences of a regular expression in a string.