I have a string of pattern <digit>, <digit>. I want to check whether it has:
- Two zeroes
- Left zero and right non-zero
- Left non-zero and right zero
- Anything else
I have tried to do this with the following code:
case ... in
"0, 0") ... ;;
"0, ?") ... ;;
"?, 0") ... ;;
*) ... ;;
esac
But it is only matching "two zeroes" and "any other" cases. How can I fix that?