Author Topic: using wcmatch to find * (asterisk)  (Read 2050 times)

0 Members and 1 Guest are viewing this topic.

andrew_nao

  • Guest
using wcmatch to find * (asterisk)
« on: November 19, 2010, 10:21:22 AM »
anyone have a though on how to use wcmatch to search a string for an asterisk?

something like
(wcmatch var "*")

this asterisk would be located in the beginning of the string

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: using wcmatch to find * (asterisk)
« Reply #1 on: November 19, 2010, 10:22:51 AM »
Hi,

(wcmatch var "`**")
Speaking English as a French Frog

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: using wcmatch to find * (asterisk)
« Reply #2 on: November 19, 2010, 10:23:24 AM »
(wcmatch text "`**")
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: using wcmatch to find * (asterisk)
« Reply #3 on: November 19, 2010, 10:25:32 AM »
grrrr, m-u-s-t  l-e-a-r-n  h-o-w  t-o  t-y-p-e  f-a-s-t-e-r

yeah, what Gile said
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: using wcmatch to find * (asterisk)
« Reply #4 on: November 19, 2010, 10:45:41 AM »
Just to clarify the above...

the ` character will indicate that the following character is to be interpreted literally (should it be a 'special' character with some other meaning, such as an asterisk)

More examples:

Code: [Select]
(wcmatch "Lee?" "*`?")
Code: [Select]
(wcmatch "Lee~Mac" "*`~*")
All this information is list in the VLIDE Help Docs on the wcmatch function, see here for how to access the help.

Lee

andrew_nao

  • Guest
Re: using wcmatch to find * (asterisk)
« Reply #5 on: November 19, 2010, 04:16:45 PM »
thanks for the help