51Testing软件测试论坛
标题:
为什么我这里!.*不行呢
[打印本页]
作者:
msn
时间:
2006-4-30 14:28
标题:
为什么我这里!.*不行呢
例如,本来属性为:
{
class: window,
MSW_class: "!Afx:.*",
label: "AutoCAD 2004 - [Drawing1.dwg]"
}
将其改为:
{
class: window,
MSW_class: "!Afx:.*",
label: "!AutoCAD 2004 - [Drawing.*"
}
或者
{
class: window,
MSW_class: "!Afx:.*",
label: "!AutoCAD 2004 - [Drawing.*.dwg]"
}
都不行。
到底应该怎么改阿?
作者:
chill
时间:
2006-4-30 14:49
你原来的label: "AutoCAD 2004 - [Drawing1.dwg]"中包含转义字符[和 ],看你下面改的方式推测你希望把它们做为搜索内容而不是转移字符,所以你必须在它们之前加上\,表明它们不是转移字符,同理,当你希望将! . * ^ 等符号做为搜索的本身内容时,均要加 \
改1:
{#匹配:AutoCAD 2004 - [Drawing1.任意字符]
class: window,
MSW_class: "!Afx:.*",
label: "!AutoCAD 2004 -\ [Drawing1\..*\]"
}
改2:
{#匹配:AutoCAD 2004 - [Drawing1任意字符]
class: window,
MSW_class: "!Afx:.*",
label: "!AutoCAD 2004 -\ [Drawing1.*\]"
}
改3:
{#匹配:AutoCAD 2004 - [Drawing1任意个1] 例如:Drawing1111
class: window,
MSW_class: "!Afx:.*",
label: "!AutoCAD 2004 -\ [Drawing1*\]"
}
注意在转义字符中 * 和 .* 的区别
over--chill
作者:
lblcq
时间:
2007-9-26 21:06
路过看看
作者:
ryqkitty
时间:
2008-1-7 10:48
学习了!
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2