Skip to content

Instantly share code, notes, and snippets.

@Park-Developer
Created April 10, 2021 02:14
Show Gist options
  • Save Park-Developer/90bdcf2574b7c8d4eb0c267255ff503c to your computer and use it in GitHub Desktop.
Save Park-Developer/90bdcf2574b7c8d4eb0c267255ff503c to your computer and use it in GitHub Desktop.
re module : finditer()
import re
st = [m.start() for m in re.finditer('test', 'test test test test')]
print (st)
# 출처: https://metagenomics.tistory.com/entry/여러번-찾기 [메타지노믹스]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment