Regex for all alphabets

后端 未结 3 588
孤街浪徒
孤街浪徒 2021-01-24 03:11

i need a regex for all alphabets. I have an input and target text. Both of them can be belong different alphabets. I mean they can be belong chinese, latin, cyrillic and any oth

3条回答
  •  被撕碎了的回忆
    2021-01-24 03:44

    i use "|" this character as a separator, so it is speacial for me. Key can be any character except of "|". it solve my problems thanks for answers. And it can be used with javascript, java and groovy. I tested it, worked.

    var keyPrefix ="\\|[\u0000-\u007B\u007D-\uFFEF]*";
    var keySuffix = "[\u0000-\u007B\u007D-\uFFEF]*\\|";
    var searchkey = keyPrefix + key.toLowerCase() + keySuffix; 
    

提交回复
热议问题