Login | Sign Up
 





 
AutoLISP Function Detail
Name: wcmatch

Syntax:
(wcmatch str pat)

Description:
Returns T if the string and match pattern are equal. You can use the * (asterisks) for a wild character search. The function is also case sensitive so it you use lower case for the pattern and upper case for the string then nil will be returned.

Patterns Matches
* Any String
? Single character of string
# Single digit of string
@ Single alphabetic character
. Single non-alphabetic character
~ Anything except pattern
[ ] Any enclosed character
[~ ] Any character not enclosed
[ - ] A range of single characters
, Separates two patterns
\\ Single backslash
' Read next character literally


Example(s):
(wcmatch "MLINE" "*LINE")
T

(wcmatch "MLINE" "*line")
nil