What does the i flag do?
/hello/i
- Case-insensitive matching
- Finds every match
- Makes
.match newlines too - Ignores whitespace
The
Play Regex ▸
i flag makes letters match regardless of case, so this pattern matches "HeLLo".