Hello.
I write such a Pattern: (0|15|30|40):(0|15|30|40) , but the UNIT test accepts any numbers (for example: 20: 0 , 100: 0 ). Account must be accepted only with the indicated numbers ( 0, 15, 30, 40) .
I would be grateful for the help because in regular expressions it is not strong at all.
s.matches("(0|15|30|40):(0|15|30|40)"));. - Wiktor Stribiżew