PDA

View Full Version : "substitute" woes... need to fix Maya's Regex issues?


Omita
11-27-2007, 12:27 AM
string $MyFile = `substitute "\.ma" $FilePath ".bat"`;

Regex not working in Maya... sigh.

What is a good string find replace subsitute for Maya.

Omita
11-27-2007, 12:47 AM
[\.]ma

As always, after posting I figure out the solution on my last attempt. So... stay away from \. unless it's in brackets because Maya messes up the "literal" version of "."

I'm glad this works but that was annoying...

CGTalk Moderation
11-27-2007, 12:47 AM
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.