Instantly share code, notes, and snippets.
find:
(^[ \t]*def[ \t]*([a-zA-Z_]+).*?)\n+([ \t]*)
replace:
$1 $3print("function $2") $3