Skip to main content
Question

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

  • July 1, 2020
  • 1 reply
  • 68 views

ebygomm
Influencer
Forum|alt.badge.img+31

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

Forum|alt.badge.img+1
  • July 2, 2020

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.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings