
.75-stack developer (码农). Sometimes at #SingaporeJS. Neurotic tea person.
- Tweets2.4K
- Following1.6K
- Followers1.2K
- Likes4.7K

ALT // Match all RGI emoji (“Recommended for General Interchange”): const reEmoji = /^\p{RGI_Emoji}$/v; // Match an emoji that consists of just 1 code point: reEmoji.test('⚽'); // '\u26BD' // → true ✅ // Match an emoji that consists of multiple code points: reEmoji.test('👨🏾⚕️'); // '\u{1F468}\u{1F3FE}\u200D\u2695\uFE0F' // → true ✅
![// Match all Greek symbols except for “π” using set difference: /[\p{Script_Extensions=Greek}--π]/v.test('π'); // → false // Match all Greek letters using set intersection: const reGreekLetters = /[\p{Script_Extensions=Greek}&&\p{Letter}]/v; // U+03C0 GREEK SMALL LETTER PI reGreekLetters.test('π'); // → true // U+1018A GREEK ZERO SIGN reGreekLetters.test('𐆊'); // → false](https://pbs.twimg.com/media/FWQ2Y_0XEAg0NqX.jpg?name=small&format=webp)
ALT // Match all Greek symbols except for “π” using set difference: /[\p{Script_Extensions=Greek}--π]/v.test('π'); // → false // Match all Greek letters using set intersection: const reGreekLetters = /[\p{Script_Extensions=Greek}&&\p{Letter}]/v; // U+03C0 GREEK SMALL LETTER PI reGreekLetters.test('π'); // → true // U+1018A GREEK ZERO SIGN reGreekLetters.test('𐆊'); // → false















