<s> import re <EOL> reexpr = r"""<STR_LIT>""" <EOL> rx = re . compile ( reexpr , re . VERBOSE + re . MULTILINE ) <EOL> code = r"""<STR_LIT>""" <EOL> parts = rx . findall ( code ) <EOL> print ( '<STR_LIT:*>' * <NUM_LIT> , '<STR_LIT>' , '<STR_LIT>' . join ( x [ <NUM_LIT:0> ] . strip ( '<STR_LIT:U+0020>' ) for x in parts ) ) <EOL> print ( '<STR_LIT:*>' * <NUM_LIT> , '<STR_LIT>' , '<STR_LIT:\n>' . join ( x [ <NUM_LIT:1> ] for x in parts if x [ <NUM_LIT:1> ] . strip ( ) ) ) <EOL> print ( '<STR_LIT:*>' * <NUM_LIT> , '<STR_LIT>' , '<STR_LIT:\n>' . join ( x [ <NUM_LIT:2> ] for x in parts if x [ <NUM_LIT:2> ] . strip ( ) ) ) </s>
