我有來自Dictionary的30000+個字符串列表,必須找到匹配。具體的正則表達式任務:
(我必須找到與匹配的數字從0到1000,...每個數字是由字母代表所有字)考試號121
vowelsAndH = {a,á,e,é,ě,i,í,o,ó,u,ú,ů,y,ý,h};
one = {t,d,ť,ď};
two = {n,ň};
...
:
{vowelsAndH+}{one}{vowelsAndH+}{two}{vowelsAndH+}{one}{vowelsAndH+}
word "eděnautin" is Matched for 121
word "dnautin" is Matched for 121
word "dnaunin" is not Matched for 121, but is Matched for 122
所以問題是,如何得到這個
{vowelsAndH+}{one}{vowelsAndH+}{two}{vowelsAndH+}{one}{vowelsAndH+}
爲正則表達式格式。
是'誓言elsAndH'是數字之間的必需分隔符還是簡單的字符被忽略? 「dtnt」是什麼數字,如果有的話? – HABO