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:

Get hands-on with 1200+ tech skills courses.