That's what my second reply shows. I stored the substring in $charName and then stripped it. That's what you wanted right? On 5/07/2014 6:41 PM, "lala" <[email protected]> wrote:
> sorry, my bad explanation. charName is variable and changing. i wanted to > ask, about stripping last part with underscore via regex. but thanks anyways > > On Saturday, 5 July 2014 11:36:53 UTC+5, Justin Israel wrote: >> >> Strip the "_charName" part from the end of the given string: >> >> substitute "_charName$" "blabla_blabla_charName" ""; >> // Result: blabla_blabla // >> >> >> >> -- > 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/6c032e11-1b77-43c6-be0b-8052ac93af0f%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/6c032e11-1b77-43c6-be0b-8052ac93af0f%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/CAPGFgA3mDFCVzFZ7noL3N7QTxu2EA0VDfQiRJAmA64VzXbVhKw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
