clean-regexp is a JavaScript library designed to optimize and simplify regular expressions. It automatically removes unnecessary complexity from RegExp patterns, leading to improved readability and performance. By stripping redundant groups, character classes, and quantifiers, clean-regexp helps create leaner and more efficient regular expressions. Ideal for developers seeking to enhance the maintainability and execution speed of their regex usage across JavaScript projects.
The npm package clean-regexp has seen infrequent releases. It had a single release (version 1.0.0) in August 2017. Since September 2017, there have been no subsequent releases, as of August 2025. The package appears to be inactive regarding updates or new versions.
Clean-regexp's npm package downloads show a generally increasing trend from March 2024 to August 2025. Downloads grew from roughly 9 million to over 15 million, with peaks in June and July 2025 exceeding 18 million. August 2025 downloads are incomplete and show a possible decline.