search for matching characters in a string

   3533   1   0
User Avatar
Member
41 posts
Joined: June 2010
Offline
Hey folks,

Is there a way in vex to search for matching characters on a string? To clarify further, let's say I have a bunch of prims with an @path attribute that reads /foo/bar/box, /foo/bar/circle, /foo/bar/torus, etc

Now in a wrangle node, I'd like to parse through the string and see if the word “box” exists in @path.

Thanks!
~t.goat
User Avatar
Member
2558 posts
Joined: June 2008
Offline
Check out the match function.
http://www.sidefx.com/docs/houdini16.0/vex/functions/match [sidefx.com]
Edited by Enivob - March 10, 2017 19:58:28
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
  • Quick Links