Skip to content

Commit 89af46b

Browse files
committed
Updated README.md
added alternatives section, minor changes for clarity
1 parent b068e7e commit 89af46b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pattern.matchAllIn('1973-12-08'); // like string.matchAll(pattern)
101101
pattern.replaceAllIn('123-456', '#'); // like string.replaceAll(pattern, replacement)
102102
```
103103

104-
### Advanced Usage
104+
### Fallback
105105

106106
If you need access to the underlying `RegExp` instance:
107107

@@ -111,16 +111,16 @@ const nativeRegExp = pattern.regExp; // Regular RegExp instance
111111
```
112112

113113
## ✨ Features
114-
- ✅ Strictly typed named & unnamed capture groups
115-
- ✅ Supports contextual awareness
116-
- ✅ Parses:
117-
- nested groups
114+
- Strictly typed named & unnamed capture groups
115+
- Supports contextual awareness
116+
- Parses:
118117
- different group types (non-capturing, lookarounds, named captures, etc.)
118+
- nested groups
119119
- alternation
120120
- character classes and escaped characters
121-
- Infers group optionality from quantifiers (`?`, `*`, `{n,m}`)
122-
- Validates flags
123-
- Supports dynamic (non-literal) pattern + flag inputs
124-
## 📅 Project History
125-
[![latest release at 2025-09-07](https://img.shields.io/github/release-date-pre/codpro2005/ts-regexp)](https://github.com/codpro2005/ts-regexp/releases/latest)
126-
[![created at 2025-07-13](https://img.shields.io/github/created-at/codpro2005/ts-regexp)](https://github.com/codpro2005/ts-regexp/commits/main/)
121+
- Infers group optionality from quantifiers (`?`, `*`, `{n,m}`)
122+
- Validates flags
123+
- Supports dynamic (non-literal) pattern + flag inputs
124+
## Alternatives
125+
- **[arkregex](https://arktype.io/docs/blog/arkregex)** - A drop-in replacement for `new RegExp` that, in addition to this library, offers strict literal group typings, readable error messages with powerful validation and best practices suggestions. Maintained by [David Blass](https://github.com/ssalbdivad) (creator of ArkType) and actively updated.
126+
- **[magic-regexp](https://regexp.dev)** - A compiled-away, type-safe alternative with a fluent, chainable API that makes regex patterns more readable and maintainable. Instead of cryptic regex syntax, you write `exactly('foo').or('bar')` which compiles to native RegExp at build time with no runtime cost. Part of the [unjs](https://github.com/unjs) ecosystem.

0 commit comments

Comments
 (0)