import regex

var match = regex.build(“(\\w+)\\W+(\\w+)”) var source = “@abc def–” var res = match.search(source) # 获得匹配序列

foreach it in range(0, res.size()) do system.out.println(res.str(it))