Regex
</head>
<body>
<button onclick="validateText()">Validate</button>
<p id="result"></p>
<script>
function validateText() {
if (regex.test(input)) {
document.getElementById('result').style.color = "green";
} else {
</script>
</body>
</html>