RFC: core scope (MVP)
mdjastrzebski opened this issue · 1 comments
mdjastrzebski commented
In order to prepare MVP version we need to implement core regex features so that the package is useful for typical use cases.
Core scope
- Features
-
buildRegex
,buildPattern
top-level APIs- RegExp
flags
- RegExp
- quantifiers
- base:
one
,oneOrMore
,zeroOrMore
,optionally
-
repeat
- base:
-
choiceOf
alternative - character classes
- base classes:
any
(.
),digit
(\d
),word
(\w
),whitespace
(\s
) -
anyOf
class -
characterClass
helper -
characterRange
class -
inverted
modifier (^
)
- base classes:
- captures:
-
capture
-
- anchors
- base:
startOfLine
(^
),endOfLine
($
)
- base:
-
- Documentation
- Getting started guide
- API reference
- 5 meaningful examples
- CI/CD
- Publish to NPM
Things after MVP
-
Lookahead
/NegativeLookahead
- More exotic character classes
- More exotic anchors
-
Local
capture (not sure if relevant) - Character class operations:
union
,intersection
, etc (not sure if relevant) - Other anchors
-
wordBoundary
(\b
) - inverted anchors
-
- Advanced captures (not sure if relevant)
-
transform
option -
tryCapture
withtransform
-
reference
(as
)
-
jaworek commented
I'll work on startOfLine
(^), endOfLine
($) anchors