Regex Extract 10 consecurtive numbers from a string.

PHOTO EMBED

Sat Oct 29 2022 12:37:30 GMT+0000 (Coordinated Universal Time)

Saved by @janduplessis883 ##regex

given_string = "I moved to Paris 75011, it's closer to my workplace."
zip_code_pattern = r"\d{5}"
re.findall(zip_code_pattern, given_string)
content_copyCOPY

http://localhost:8889/notebooks/receipts.ipynb