查看完整版本: 为什么我这里!.*不行呢

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

学习了!:loveliness:
页: [1]
查看完整版本: 为什么我这里!.*不行呢