JSFiddle - React, Tailwind, and code Playground

by gmcalab

JavaScript

$(document).ready(function(){ 
     var x = /(^-*\d+$)|(^-*\d+\.\d+$)/i.exec("some text 2012-01-01 some more text here");
    
    alert(x.length);
});