def _match_css_class(str):
 return re.compile(('(^|.*\\s)%s($|\\s)' % str))

def _match_css_class ( str ) : return re . compile ( ( '(^|.*\\s)%s($|\\s)' % str ) )
build a re to match the given css class .