Jordan Walsh Posted April 14, 2015 Share Posted April 14, 2015 Is there any functions for dealing with string manipulation? find, replace etc. I cant seem to find anything in the docs I can do everything I need in python, just wanted to be able to do similar things in VEX. Also I'm assuming it would be quicker in vex than in python to manipulate string attributes on points, correct? Quote Link to comment Share on other sites More sharing options...
magneto Posted April 14, 2015 Share Posted April 14, 2015 There are find, re_find, split functions and more: http://www.sidefx.com/docs/houdini14.0/vex/functions/find http://www.sidefx.com/docs/houdini14.0/vex/functions/re_find http://www.sidefx.com/docs/houdini14.0/vex/functions/split 1 Quote Link to comment Share on other sites More sharing options...
Jordan Walsh Posted April 15, 2015 Author Share Posted April 15, 2015 Ahh, no wonder I couldnt find them... I'm in 13 Any alternatives for 13? (I dont think we are moving to 14 for this job) Quote Link to comment Share on other sites More sharing options...
Pancho Posted July 30, 2018 Share Posted July 30, 2018 Stumbled across this thread, although I don't see the answer to the original question. How do I replace a string with another string in a string (e.g. change ../shop/.. to ../shopnet1/.. in the material path). Since there is no replace I tried to use re_replace. Not working unfortunately. What do I miss here? Cheers Tom Quote Link to comment Share on other sites More sharing options...
woodenduck Posted July 30, 2018 Share Posted July 30, 2018 This might be helpful... https://github.com/jtomori/vex_tutorial#arrays-and-strings-example 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.