Skip to content

Instantly share code, notes, and snippets.

@sagorbrur
Created November 19, 2019 18:05
Show Gist options
  • Select an option

  • Save sagorbrur/089a6ca12257fd1f569df2a3b3b4e094 to your computer and use it in GitHub Desktop.

Select an option

Save sagorbrur/089a6ca12257fd1f569df2a3b3b4e094 to your computer and use it in GitHub Desktop.
import re
text = "Hello123 with 563"
result = re.findall(r"\d+", text)
print(result)
# output: ['123', '563']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment