Regex to compare strings with Umlaut and non-Umlaut variations

后端 未结 7 1711
刺人心
刺人心 2021-01-13 10:34

Can anyone help me with a javascript regular expression that I can use to compare strings that are the same, taking into acccount their non-Umlaut-ed versions.

for e

7条回答
  •  隐瞒了意图╮
    2021-01-13 11:06

    Regex isn't better technology to solve this problem.

    You should consider to create a dictionary to store your Umlaut character as key and non-Umlaut as value; Then you can to iterate over yourdictionary, check if it exists on your string and take appropriate action.

提交回复
热议问题