#NEWLINE# def get_group_region_parts( text ) : #NEWLINE# #INDENT# text = text . rstrip ( ) #NEWLINE# selector = contents [ 0 : text . find ( '[' ) ] #NEWLINE# contents = text [ text . find ( '[' ) : len ( text ) ] #NEWLINE# return ( selector , contents )