Hi;
Using VEX codes, how could I remove some letters from end of a string ?
Thanks.
How remove letters from end of a string ?
10339 4 2- Masoud
- Member
- 407 posts
- Joined: Aug. 2015
- Offline
- c0y
- Member
- 52 posts
- Joined: June 2016
- Offline
- Andy_23
- Member
- 918 posts
- Joined: March 2014
- Offline
Hi,
please have a look at the string manipulation functions in the docs. In your case http://www.sidefx.com/docs/houdini/vex/functions/rstrip.html [www.sidefx.com]
Note the related functions at the bottom of that page.
Edit:
Here's some further info: http://www.sidefx.com/docs/houdini/vex/strings.html [www.sidefx.com]
Hope this helps
Andy
please have a look at the string manipulation functions in the docs. In your case http://www.sidefx.com/docs/houdini/vex/functions/rstrip.html [www.sidefx.com]
Note the related functions at the bottom of that page.
Edit:
Here's some further info: http://www.sidefx.com/docs/houdini/vex/strings.html [www.sidefx.com]
string a_string = "hello world!"; string thirdbyte = a_string[:-3]; result: hello wor
Hope this helps
Andy
Edited by Andy_23 - April 2, 2018 07:50:38
- papsphilip
- Member
- 385 posts
- Joined: July 2018
- Offline
- Soothsayer
- Member
- 861 posts
- Joined: Oct. 2008
- Offline
-
- Quick Links