TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: csgoh on July 07, 2016, 03:58:31 AM

Title: wcmatch question
Post by: csgoh on July 07, 2016, 03:58:31 AM
I use "\U+00B2" for superscript 2 usually for meter square m2.
I am wondering how to check for its existence of superscript or any other character codes using \U+ .
Using (wcmatch string "*'\+00B2") returns nil.
Thanks in advance.
Title: Re: wcmatch question
Post by: roy_043 on July 07, 2016, 05:25:51 AM
Code: [Select]
(setq str "12m\U+00B2")
(wcmatch str "*\U+00B2*") => T
Title: Re: wcmatch question
Post by: csgoh on July 07, 2016, 05:57:51 AM
Much appreciated Roy.