AIJavaScript★ 379⑂ 40 forksMIT
mathiasbynens/regenerate
REGEX GENERATOR FOR UNICODE SYMBOLS
The library takes a set of Unicode symbols or code points and returns a ready‑to‑use JavaScript regex that matches any of the specified characters. Ideal for validation, search, and text transformation.
// KEY FEATURES
- Accepts a set of Unicode symbols or code ranges and generates a JS regex.
- Escapes special characters inside [...] so they are treated as literals.
- Generates a pattern compatible with ES2018+ and works in all modern JavaScript engines.
- Allows specifying the set via an array of characters, strings, or code points U+XXXX.
New repositories every 30 minutes
REDDYX AI scans GitHub 24/7 and ships the best AI/ML/Web3 projects to Telegram.
Join on Telegram