I want to differentiate between two python strings 2015-07-01
and 2015-Jul-01
Case 1: Digits
OR
Special charactersCase 2: Everything else (characters)
I'm aware of the isdigit()
function but it only recognized digits and not special characters.
By special characters I mean hyphen - or slash /