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.
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 functionextract_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.