Retina, (削除) 1114 (削除ここまで) 1011 bytes
Golfed 1 byte thanks to @ATaco
[013-9]|22^(\W|2\b)+$
Outputs 0 for truthy testcases, or a positive integer for falsey ones.Try it online!
Retina, (削除) 11 (削除ここまで) 10 bytes
Golfed 1 byte thanks to @ATaco
[013-9]|22
Outputs 0 for truthy testcases, or a positive integer for falsey ones.
Retina, 11(削除) 11 (削除ここまで) 10 bytes
Golfed 1 byte thanks to @ATaco
[013-9]|22+9]|22
Outputs 0 for truthy testcases, or a positive integer for falsey ones.