human
Write me a the Python code you requested given the following:
Complete the below
def _toDOMname(CSSname):

    ''''Returns DOMname for given CSSname e.g. for CSSname \'font-style\' returns
    \'fontStyle\'.'
    '''
assistant
#Here is the Python code you requested.
    def _doCSStoDOMname2(m):
        return m.group(0)[1].capitalize()
    return _reCSStoDOMname.sub(_doCSStoDOMname2, CSSname)