David Bethel
Usenet Archive
- Joined
- Nov 22, 2001
- Messages
- 135
- Reaction score
- 0
Anyone know of a simple wcmatch test to see if a string contains a wildcard character as in a block name pattern search?
So far I have:
(while (or (not bn)
(not (or (snvalid bn)
(wcmatch bn [ "#" "@" "." "*" "?" "~" "[" ]))))
(setq bn (getstring "\nBlock Name Pattern: ")))
-David
So far I have:
(while (or (not bn)
(not (or (snvalid bn)
(wcmatch bn [ "#" "@" "." "*" "?" "~" "[" ]))))
(setq bn (getstring "\nBlock Name Pattern: ")))
-David