JSFiddle - React, Tailwind, and code Playground

by eget teteete

JavaScript

var pattern = /\+38 \(\d{3}\) \d{3}-\d{2}-\d{2}/,
 text =prompt('s');
document.write(text + " -> " + pattern.test(text) + "<br />");