def re_show(regexp, string, left='{', right='}'):
 print(re.compile(regexp, re.M).sub(((left + '\\g<0>') + right), string.rstrip()))

def re_show ( regexp , string , left = '{' , right = '}' ) : print ( re . compile ( regexp , re . M ) . sub ( ( ( left + '\\g<0>' ) + right ) , string . rstrip ( ) ) )
return a string with markers surrounding the matched substrings .