View Full Version : mel: string question

09 September 2010, 02:35 PM
Hey guys,
I'm wondering if there is a way to split string after some characters.
For example : if I have this string string $temp = ("c:/maya_project/projectX/images/layerX/sequenceX/")
I want eliminate everything until "/images"
and I need just string $temp = ("/images/layerX/sequenceX/"). How to do this.
I was looking in docs stringToStringaArray and match commands but I didn't get any successfull result

09 September 2010, 02:38 PM
match "/images.*$" "c:/maya_project/projectX/images/layerX/sequenceX/"

09 September 2010, 02:45 PM
Thank you NaughtyNathan.
the . symbol was the key.

CGTalk Moderation
09 September 2010, 02:45 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.