Masking and Adding Expression to Parameter Components

Can someone please explain the string syntax when using a Mask expression for a path compare component in grasshopper? Also, what is the sytax when adding an expression as an argument to a parameter component such as a point parameter?

 

thanks

 

  • up

    David Rutten

    Here's a few examples. Question marks can be used to match a single digit, asterisks can be used to match any number of digits.


    --
    David Rutten
    david@mcneel.com
    Poprad, Slovakia
    14
  • up

    konrad k sobon

    David,

    It's been a while since this was updated. I couldn't find anyone asking this question but if you don't mind refreshing this post it would be great. I noticed that most of the masks described in here would not work with the latest GH. For example to get a range you used an example like this: {0;[0-10];0} while now it would have to be this: {0;(0~10);0} which is quite different. I honestly just kept trying different things until it worked but it would be nice to have a good set of working masks available for the latest GH. 

    Thank you! 

    1