Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created April 6, 2019 21:50
Show Gist options
  • Select an option

  • Save dipanjanS/31b9460bddc0fd67b034ebe2bab484c1 to your computer and use it in GitHub Desktop.

Select an option

Save dipanjanS/31b9460bddc0fd67b034ebe2bab484c1 to your computer and use it in GitHub Desktop.
m = re.finditer(r'.*?(spark).*?', "I'm searching for a spark in PySpark", re.I)
for match in m:
print(match, match.start(), match.end())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment