1
這非常基本的程序無法在DOORS 9.6.1.6運行:DOORS DXL正則表達式[匹配0]不工作
string t = "Hello World!"
Regexp re = regexp2 ".+([a-z]+!)$"
if(re t){
print "found the " re[match 0]
}
我得到這個錯誤
-E- DXL: <Line:4> incorrect arguments for ([)
-E- DXL: <Line:4> incorrectly concatenated tokens
-I- DXL: All done. Errors reported: 2. Warnings reported: 0.
是怎麼回事的任何想法上?
不是應該'噸[匹配0]'? –
@WiktorStribiżew你似乎是對的。有趣的這裏:http://stackoverflow.com/questions/19135415/in-doors-dxl-how-do-i-use-a-regular-expression-to-determine-whether-a-string-st –