JSFiddle - React, Tailwind, and code Playground

by TheBuzzer

HTML

<input type="text" id="Test1" />

JavaScript

$('document').ready(function() {
	$("#Test1").change(function() {
  	var ChkSym = new RegExp("[.*+!?^${}()|[\]\\]");
		console.log(ChkSym.test($("#Test1").val()));
	});
});