slevithan/xregexp

Extended JavaScript regular expressions

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 29 minutes ago
Type:Library / SDKCategory(s):Core & Utility LibrariesLanguages & Runtimes
Added to GitGenius on September 20th, 2026
Created on February 24th, 2012
Open Issues & Pull Requests: 11 (+0)
GitHub issues: Enabled
Number of forks: 275
Total Stargazers: 3,325 (+0)
Total Subscribers: 64 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 1
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 17 days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • proposal (5)
  • syntax (4)
  • change (3)
  • enhancement (2)
  • bug (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

XRegExp is a library that extends JavaScript regular expressions with augmented syntax and flags beyond native browser support.

The tool addresses the limitations of native JavaScript regex by providing modern syntax features and utility functions that simplify pattern matching and parsing. It compiles patterns to native RegExp objects, so performance matches standard regular expressions after the initial compilation cost. XRegExp offers named capturing groups, Unicode property escapes, additional flags like sticky matching, and a utility belt of helper methods. It also handles cross-browser inconsistencies and provides ways to backport newer regex features into older JavaScript environments.

Developers working with complex regex patterns or needing Unicode support across older browsers should consider XRegExp. It suits projects that require readable, maintainable regex code through features like named subpatterns and the XRegExp.build method for pattern composition. The README notes that many of XRegExp's original features have been adopted into modern JavaScript standards, and points developers to a lightweight spiritual successor for new projects seeking to push regex capabilities further.

The project maintains active engagement with its user base through detailed documentation and examples on its dedicated website. The tool provides multiple ways to consume its functionality, including individual addon loading and bundled distributions. Breaking changes are handled deliberately and documented, with migration paths provided for users upgrading between major versions. The codebase supports diverse JavaScript environments including ES5+ browsers, Node.js, and module systems like RequireJS.