Retina 0.8.2, (削除) 16 (削除ここまで) 12 bytes
T`-:(|)D`__d
T`
Enter transliteration mode
(|)D`d
Replace the mouth character with the corresponding digit (0 to 3)
-:`__
Remove each of - and : from the string.
Implicitly output the result, which will be a single digit.
math junkie
- 7.3k
- 1
- 23
- 47