Author Topic: wcmatch question  (Read 1250 times)

0 Members and 1 Guest are viewing this topic.

csgoh

  • Newt
  • Posts: 176
wcmatch question
« 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.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: wcmatch question
« Reply #1 on: July 07, 2016, 05:25:51 AM »
Code: [Select]
(setq str "12m\U+00B2")
(wcmatch str "*\U+00B2*") => T

csgoh

  • Newt
  • Posts: 176
Re: wcmatch question
« Reply #2 on: July 07, 2016, 05:57:51 AM »
Much appreciated Roy.