Simple Validation Function in Javascript to Check if a String is Valid ROMAN Numeral or Not | Input Validation Using Regex
If you need to validate your input agains roman number then here's a simple javascript validation method to check if the given input is a valid ROMAN numerals or not
Trying out our ROMAN number validator
console.log(isRoman("XXXVIII")) // true console.log(isRoman("CHIWX")) // false console.log(isRoman("MMMCMXCIX")) // true
Comments
Leave a comment
You are not LoggedIn but you can comment as an anonymous user which requires manual approval. For better experience please Login .