algorithmic modeling for Rhino
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
Tags:
David
Maskign doenst appear to work if we use real numbers instead of integers in the mask construct
It's easy enough to match numbers between 0 and 4, but how does one match a string number between 32 and 99?
I am sure that your question was merely rhetorical, so I hope that my response isn't irritating. Here's a regex that answers this question though.
^(3[2-9])|([4-9][0-9])$
I say this hoping that you'll appreciate knowing that regexes can handle ranges such as this and can add really interesting functionality for number manipulation. I should add that it does certainly get trickier with larger numbers (e.g. 3-digits or more). I also know that this post is 5 years old, so I presume you may be aware of this by now... Anyways, thought it wouldn't hurt.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by