what syntax is used to get a wildcard from an attribute

   499   2   1
User Avatar
Member
46 posts
Joined: 12月 2020
Offline
what syntax is used to get a wildcard from an attribute when using a split node?

I would like to grab specific prims that have a specific word mixed into there name..

eg contains the word "cottage"
NAME....
summer cottage
cottage farm
flower cottage farm

I don't know how to call a wild card with a split node?
can anyone help?
User Avatar
Member
46 posts
Joined: 12月 2020
Offline
@name="* cottage" seems to be the answer if the word that is wanted is at the end but I want to grab it in any position and any capitalization???
Edited by Getyamamout - 2024年9月4日 09:39:49
User Avatar
Member
30 posts
Joined: 11月 2016
Offline
You could use
@name=*[Cc]ottage*

https://www.sidefx.com/docs/houdini/vex/functions/match.html [www.sidefx.com]
Edited by gorrod - 2024年9月4日 18:38:30
  • Quick Links