JSFiddle - React, Tailwind, and code Playground
by Oleg Lazarev
JavaScript
// Note: `𝌆` is U+1D306 TETRAGRAM FOR CENTRE, an astral symbol.
const string = 'a𝌆b';
console.log(/a.b/.test(string));
// → false
console.log(/a.b/u.test(string));
// → true
const match = string.match(/a(.)b/u);
console.log(match[1]);
// → '𝌆'