Learn practical skills, build real-world projects, and advance your career
import re, pyperclip
text = "Gagan is 35 years old and his son, Sandeep is 12 years old and his grandfather, Mukesh is 89 years old."
age = re.findall(r'\d\d' ,text)
age
['35', '12', '89']
names = re.findall( r'[A-Z] [a-z]*' ,text)