The solution from Stack Overflow he shows at the end, for those curious: ^(?=[MDCLXVI])M*(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[XV]|V?I{0,3})$ Which appears to be taken from here:...
The solution from Stack Overflow he shows at the end, for those curious:
The solution from Stack Overflow he shows at the end, for those curious:
Which appears to be taken from here:
https://stackoverflow.com/a/36576402