How to check if the input string is same as requirement struct?
Struct: Number,Number Letter Number, Number
For example:
if input is '12,9b7,23'
return True
if input is '1b'
return faluse
How to check if the input string is same as requirement struct?
Struct: Number,Number Letter Number, Number
For example:
if input is '12,9b7,23'
return True
if input is '1b'
return faluse
https://docs.python.org/3.8/library/re.html this sovled
\d{0,9},\d{0,9}[adc]\d{0,9},\d{0,9}