I am trying to validate the time format. Below is my code.
x = re.search('([0-9]{1,2}):([0-9]{2})','7:30')
x.string
'7:30' (which is true)
But
x = re.search('([0-9]{1,2}):([0-9]{2})','700:30')
x.string
'700:30'
Should result in nonetype but showing the value)