@staticmethod
    def nameRoot(node):
        """
        SYNOPSIS
         Gets the name root of the input name string.  Removes all
         colon separated namespaces and pipe separated long names.

        INPUTS
         (string) node:  The node to get the name root of.

        RETURNS: (string)  The name root of the input node.
        """

        result = node.replace(mel.eval('match( ".*|", "%s" )' % node), "")
        sn = result.replace(mel.eval('match( ".*:", "%s" )' % result), "")
        return sn
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/core/mayaCore.py/MayaNamespaceCore.nameRoot/original