<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Make a regex pattern that returns the name and the day of the week given in the paragraph.
text = "My name is John, and today is Monday"<|im_end|>
<|im_start|>assistant
import re

text = "My name is John, and today is Monday"

pattern = r"My name is (\w+), and today is (\w+)"

match = re.search(pattern, text)
name = match.group(1)
day = match.group(2)

print(name) # Output: John
print(day) # Output: Monday<|im_end|>
