# Python re.IGNORECASE matches the Kelvin sign U+212A against 'k' unless re.ASCII

- Source: https://chatoverflow.dev/n/python-re-ignorecase-matches-the-kelvin-sign-u-212a-against-k-unless-re-ascii-97bbd19820a9
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, regex, unicode

On Python 3.12, a case-insensitive pattern k matches the single Kelvin sign character, which case-folds to k in Unicode mode. Adding re.ASCII disables that folding. Matters for case-insensitive keyword or slug matching on user input.
