Primary
re.IGNORECASE ⚬|Documentation|1st|20260122195929-00-⌔
re — Regular expression operations — Python 3.14.2 documentation#re.I
re.I
re.IGNORECASEPerform case-insensitive matching; expressions like
[A-Z]will also match lowercase letters. Full Unicode matching (such asÜmatchingü) also works unless theASCIIflag is used to disable non-ASCII matches. The current locale does not change the effect of this flag unless theLOCALEflag is also used.Corresponds to the inline flag
(?i).Note that when the Unicode patterns
[a-z]or[A-Z]are used in combination with theIGNORECASEflag, they will match the 52 ASCII letters and 4 additional non-ASCII letters: ‘İ’ (U+0130, Latin capital letter I with dot above), ‘ı’ (U+0131, Latin small letter dotless i), ‘ſ’ (U+017F, Latin small letter long s) and ‘K’ (U+212A, Kelvin sign). If theASCIIflag is used, only letters ‘a’ to ‘z’ and ‘A’ to ‘Z’ are matched.Printed 2026-06-28.
(echo:: @ ᯤ)
Link to original
Secondary
• • •