![]() |
wcmatch一问
wcmatch一问
www.dimcax.com wcmatch一问 (setq lst (list "j4" "j6" "j7" "j4+j6" "j4+j7" "j6+j7")) 如何挑出上述表中包含4或6但不含7的字符串?我的方法如下: (and (wcmatch "*j4*,*j6*") (not (wcmatch "*7*"))) 但感觉应该有更简洁的方法,请大侠们指点。 新手上路,请多指点。 d (wcmatch txt "[46],~*7*") d 那如果要求找出包含"a4"或"b6"而不包括"c7"呢?可以用 (wcmatch txt "[a4b6],~"c7")么? 我感觉这样a6什么的也可能会被选中。 新手上路,请多指点。 d |
所有的时间均为北京时间。 现在的时间是 11:00 PM. |