Hi I have to match a pattern like below
{digit 0-1 or A}:{digit 0-1 or A}:{digit 0-1 or A}|{digit 0-1 or A}:{digit 0-1 or A}:{digit 0-1 or A}|{digit 0-1 or A}:{digit 0-1 or A}:{digit 0-1 or A}
I am using the following code -
String accMatrixPattern = "\\d{1,1}|[A]:\\d{1,1}|[A]:\\d{1,1}|[A]|[A]:\\d{1,1}|[A]";
String accMatrx = "1:A:1|0:1:1|0:1:1";
If I am using only "\\d{1,1}|[A]";
it is working but not combined.
Please suggest How to match Regular Expression
Thanks