callstack / callstack/ts-regex-builder

v1.x roadmap

Open
#57 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
157
Forks
5
PR merge metrics
No merged PRs in 30d

Description

## Regex features

- [x] interoperability with RegExp literals
- [x] negated character class escapes (`\W`, `\D`, `\S`)
- [x] lazy regex quantifiers
- [x] lookahead assertions
- [x] lookbehind assertions
- [x] word boundary anchor (`\b`)
- [x] named captures
- [x] named backreferences
- [x] unicode character class escapes (`\u`, `\U`)
- [x] regex flag: dotAll
- [x] regex flag: unicode
- [ ] regex flag: unicodeSets
- [x] regex flag: sticky

## Patterns (new idea)
Goal: include some popular patterns so that users don't have to figure them out by themselves.

Each pattern should have two variants:
- finder - it should look for given pattern in a longer text. It does not have to be 100%, just 90% but should be fast.
- validator - it should validate if given string matches the pattern. It should be 99-100% correct. It typically will include `startOfString` and `endOfString` to validate the whole string.

Patterns to implement:
- [ ] URL
- [ ] email
- [ ] hashtag

## Babel features

- [ ] Static DSL compilation (!)

## Infrastructure

- [x] Documentation website (Docusaurus, Vocs, etc)
- [x] Code Coverage stats

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.