Back to Opa

Intro

docs/docs/policy-reference/_examples/regex/match/case-insensitive/intro.md

1.19.1318 B
Original Source
<!-- markdownlint-disable MD041 -->

Sometimes data can be supplied in a variety of cases, and matches need to be the same regardless of case. One example of this when matching GitHub usernames.

This is where the (?i) modifier comes in. The following example shows how repositories with different cases are matched.