JSFiddle - React, Tailwind, and code Playground

by irinablue

JavaScript

console.log(new RegExp('^-?[\\p{Letter}\\d.,]+$', 'gu').test('23-444'));