Skip to content

Instantly share code, notes, and snippets.

@rahulbanerjee26
Created September 25, 2022 22:35
Show Gist options
  • Save rahulbanerjee26/4cdec00504de536b3ffc10e01b68d473 to your computer and use it in GitHub Desktop.
Save rahulbanerjee26/4cdec00504de536b3ffc10e01b68d473 to your computer and use it in GitHub Desktop.
snippets = re.findall(start_pat + "(.*?)" + end_pat, content, re.S)
result = []
for item in snippets:
if item[0] != "bash":
result.append(getSnippetName(item[0], item[1]))
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment