1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

A semi-colon to make things go @WILD?

Discussion in 'Support' started by MaartenG, Sep 16, 2016.

  1. MaartenG

    Joined:
    Aug 3, 2016
    Messages:
    355
    Likes Received:
    8
    Does the semi-colon (";") have a special meaning in @WILD[ ] ?

    I would expect the output of %@WILD[hello,*;] to be 0, but in fact it is 1.

    Same result in version 20.0.17 and TCC/LE 14.0.9
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,870
    Likes Received:
    83
    A semicolon is an include list separator.

    If you actually want to match a trailing semicolon, either use a regular expression or %@WILD[hello,*[;]] .
     
  3. MaartenG

    Joined:
    Aug 3, 2016
    Messages:
    355
    Likes Received:
    8
    Yes, [;] works like a charm! Thank you!

    ( But I thought include list separators are for files and @WILD is about strings. Anyway, it doesn't matter .. the solution works. )
     

Share This Page