0

我需要帮助处理有关德语过去分词的正则表达式:它们中的大多数以“ge”开头并以“en”或“t”结尾,除非它们被拒绝,在这种情况下会有一个或两个额外的字符. 有人可以帮帮我吗?

4

1 回答 1

0

The following Regex will capture the undeclinated verbs starting with ge- and ending with -t or -en and the declinations ending with -te, -ene, -tem, and -enem

^ge[a-z]+(t|en)(e*)(m*)$

Rubular link

于 2012-11-14T15:42:52.083 回答