#NEWLINE# def match_possible_regions( self , find , data ) : #NEWLINE# #INDENT# regions = [ ] #NEWLINE# for ind in data : #NEWLINE# #INDENT# for ( ch , index0 , index1 ) in find ( ind ) : #NEWLINE# #INDENT# regions . append ( ( int ( index0 . split ( '.' ) [ 0 ] ) , ch ) ) #NEWLINE# #UNINDENT# #UNINDENT# regions . sort ( ) #NEWLINE# seq = groupby ( regions , ( lambda ind : ind [ 0 ] ) ) #NEWLINE# matches = self . sort_possible_matches ( seq , data ) #NEWLINE# return matches