Regex Modifiers

Learn about modifiers that change the behavior of the regex expression operators.

The /i modifier

Several modifiers change the behavior of the regular expression operators. These modifiers appear at the end of the match, substitution, and qr// operators. For example, here’s how to enable case-insensitive matching:

Access this course and 1400+ top-rated courses and projects.