Question

Regex, case insenstive matching and micro µ v greek letter mu ?

  • 1 July 2020
  • 1 reply
  • 9 views

Userlevel 1
Badge +10

Is it correct that if in a StringSearcher Case Sensitive is set to no that the expression \\x{03BC} should match both the micro symbol and the greek letter mu?

\\x{00B5} also matches both if case sensitive is set to No


1 reply

Badge +1

The re-module in Python3 seems to agree with the StringSearcher in this case, it gives the same "cross-matches" when the test is set to case-insensitive. However, the case-insensitive tests also give a positive match for the listed uppercase-character: https://www.fileformat.info/info/unicode/char/039c/index.htm , so I'm not sure what the reason is.

 

Reply