JSFiddle - React, Tailwind, and code Playground
by Oleg Lazarev
JavaScript
// Note: `a` is a BMP symbol.
console.log(/a{2}/u.test('aa'));
// β true
// Note: `π` is an astral symbol.
console.log(/π{2}/u.test('ππ'));
// β true
by Oleg Lazarev
// Note: `a` is a BMP symbol.
console.log(/a{2}/u.test('aa'));
// β true
// Note: `π` is an astral symbol.
console.log(/π{2}/u.test('ππ'));
// β true