Skip to main content
Question

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

  • July 1, 2020
  • 1 reply
  • 90 views

ebygomm
Influencer
Forum|alt.badge.img+44

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

Forum|alt.badge.img+1
  • 56 replies
  • 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.