callstack/ts-regex-builder

v1.x roadmap

mdjastrzebski opened this issue · 0 comments

Regex features

  • interoperability with RegExp literals
  • negated character class escapes (\W, \D, \S)
  • lazy regex quantifiers
  • lookahead assertions
  • lookbehind assertions
  • word boundary anchor (\b)
  • named captures
  • named backreferences
  • unicode character class escapes (\u, \U)
  • regex flag: dotAll
  • regex flag: unicode
  • regex flag: unicodeSets
  • 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

  • Documentation website (Docusaurus, Vocs, etc)
  • Code Coverage stats