 - (defun LM:escapewildcards ( str )
- (if (wcmatch str "*[-#@.*?~`[`,]*,*`]*")
- (if (wcmatch str "[-#@.*?~`[`,]*,`]*")
- (strcat "`" (substr str 1 1) (LM:escapewildcards (substr str 2)))
- (strcat (substr str 1 1) (LM:escapewildcards (substr str 2)))
- )
- str
- )
- )
LeeMac原来的是这样的。
_$ (LJ:ESCAPEWILDCARDS "计算表8.1")
"计算表8`.1"
_$ (LM:ESCAPEWILDCARDS "计算表8.1")
"计算盽?`.1"
_$ |