Data-Epic / intermediate_project

Project repository for intermediate mentee
2 stars 11 forks source link

Regex to extract UUId from the given text #6

Closed PrechyDev closed 3 months ago

PrechyDev commented 3 months ago

Using the re library in Python, I created a UUID pattern - "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}". I added this to the function extract_uuid which takes in an input text and return a list of UUID.

To test the function, I called it with the given input text and printed out the result.

review-notebook-app[bot] commented 3 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB