Quick actions

cmd+k|ctrl+k

Navigation

Languages

AGE automation VVI

Snippet info

Language

Python

Visibility

public

Author

dharmendrarah

Created

2023-01-09T07:18:43.507572Z

Updated

2023-01-10T06:40:34.56785Z

# find age only from the above data
import re
s1="rahul 20 23-12-2002, arun 22 20-11-2000, vicky 24 27-10-1998"

r=re.compile(r'\d{2}-\d{2}-\d{4}')

result=re.findall(r,s1)

print(result)
INFO