how to make "," work for wcmatch's pattern?

Discussion in 'AutoCAD' started by dream0001, Apr 28, 2004.

  1. dream0001

    dream0001 Guest

    _$ (wcmatch "," "'\,")
    nil
    _$ (wcmatch "," ",")
    nil
    _$ (wcmatch "," "\,")
    nil
    _$ (wcmatch "," "',")
    nil
    _$ (wcmatch "," "[,]")
    nil
    _$ (wcmatch "," "[*,*]")
    nil
    _$ (wcmatch "," "[',]")
    nil
    _$ (wcmatch "," "['\,]")
    nil
    _$ (wcmatch "," "'\,")
    nil
    _$ (wcmatch "," "'.,")
    nil
    _$ (wcmatch "," "',,")
    nil
    _$ (wcmatch "," ",")
    nil
    _$ (wcmatch "," "',")
    nil
    how to get T?
     
    dream0001, Apr 28, 2004
    #1
  2. dream0001

    David Kozina Guest

    perhaps:

    (wcmatch "*`,*")
     
    David Kozina, Apr 28, 2004
    #2
  3. dream0001

    Jeff Mishler Guest

    $ (wcmatch "," "`,")
    T
    Notice the reverse quote. `

    HTH,
    Jeff
     
    Jeff Mishler, Apr 28, 2004
    #3
  4. dream0001

    dream0001 Guest

    thanks a lot!
    an other question,how to get " pattern ?
    (wcmatch "\"a\"" "'"") it seems can't work.
     
    dream0001, Apr 28, 2004
    #4
  5. dream0001

    David Kozina Guest

    Dream,

    If you can get over your singular 'apostrophe' fixation for wcmatches you
    ought to be able to figure this out by either...

    `1: Taking a step BACK and looking at a QUOTE of the previous solution or

    `or...

    `2: Going BACK and reading up on wcmatch info as QUOTEd in the help files.

    hth,
    David Kozina
     
    David Kozina, Apr 28, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.