Strip the "_charName" part from the end of the given string: substitute "_charName$" "blabla_blabla_charName" ""; // Result: blabla_blabla //
On Sat, Jul 5, 2014 at 6:21 PM, lala <[email protected]> wrote: > i have a string like *"blabla_blabla_charName"* > > i want to strip / remove *"_charName"* from end... > > one attempt is > string $saveFileName = `substitute "^[^.]*\\_" $saveFileString ""`; // it > retuns "charName" > i know, its almost opposite to what i need > thanks in advance > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/d1c2b462-f371-4196-9db6-11ac304255f2%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/d1c2b462-f371-4196-9db6-11ac304255f2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3PiAMpAXQFiZHYKi5C8MozrHK9M-t9AVn4etWfqWG-CA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
