Skip to content

Instantly share code, notes, and snippets.

@simonLeary42
Last active June 11, 2024 21:39
Show Gist options
  • Save simonLeary42/ab4a2924ec623a0c5979431282ee116e to your computer and use it in GitHub Desktop.
Save simonLeary42/ab4a2924ec623a0c5979431282ee116e to your computer and use it in GitHub Desktop.

find:

(^[ \t]*def[ \t]*([a-zA-Z_]+).*?)\n+([ \t]*)

replace:

$1
$3print("function $2")
$3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment