JSFiddle - React, Tailwind, and code Playground
by grantk
JavaScript
str = 'hi there tester, this is A test, find the right test in this string';
alert(str.replace(/[\s]test[\s]/g, 'TEST'));
by grantk
str = 'hi there tester, this is A test, find the right test in this string';
alert(str.replace(/[\s]test[\s]/g, 'TEST'));