mathiasbynens/regexpu
A source code transpiler that enables the use of ES2015 Unicode regular expressions in ES5.
This tool helps JavaScript developers write regular expressions that correctly handle all kinds of Unicode characters, including emojis and less common symbols. It takes your modern JavaScript code with advanced Unicode regular expressions and converts it into older JavaScript (ES5) that can run in more environments. The primary users are JavaScript developers who need to ensure their string matching works flawlessly across diverse character sets without breaking compatibility with older JavaScript engines.
240 stars. No commits in the last 6 months. Available on npm.
Use this if you are a JavaScript developer who needs to use advanced Unicode regular expressions (with the 'u' flag) in your code but must maintain compatibility with older JavaScript environments (ES5).
Not ideal if you only need to match basic ASCII characters, or if your project exclusively targets modern JavaScript environments that fully support ES2015+ Unicode regular expressions natively.
Stars
240
Forks
19
Language
JavaScript
License
MIT
Category
Last pushed
Sep 18, 2024
Commits (30d)
0
Dependencies
3
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/mathiasbynens/regexpu"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
retejs/rete-studio
A general-purpose code generation tool powered by Rete.js
chrishoermann/zod-prisma-types
Generator creates zod types for your prisma models with advanced validation
microsoft/ts-gyb
Generating native code interfaces from TypeScript
evoluteur/evolutility-ui-jquery
Model-driven Web UI for CRUD using REST or localStorage.
unjs/knitwork
🧶 Utilities to generate safe JavaScript code.