magic-regexp
magic-regexp copied to clipboard
A compiled-away, type-safe, readable RegExp alternative
### 🆒 Your use case When I create a regexp group using `anyOf` and `groupedAs`, the type of the matched group should be inferred based on the inputs to `anyOf`....
## Update add lazy quantifier version of original input helpers: - add `times.anyLazy`, `times.atLeastLazy`, `times.atMostLazy` and `times.betweenLazy` under `times` chain helper. - add `maybeLazy` and `oneOrMoreLazy`, two creating helpers. ##...
### 🐛 The bug After running pnpm install and adding to vite.config.ts, I got the following error. I'm using vite 4 and pnpm ``` failed to load config from C:\Git\BlocPlatform\Bloc\Frontend\Bloc.Vue\vite.config.ts...
Hi First, thank you so much for this library. I love it so far. I came across a typing issue while trying it out, and thought I'd report it. ###...
### 📚 Is your documentation request related to a problem? Is it possible to use this library and create the lazy quantifier? For example I would like to get such...
add `between` input that similarly works like before or after, but accepts two inputs that prepend and append these inputs before and after of the value. in summary it is...
I am trying to implement the `between` method. If you have any suggestions it would be great to hear. @danielroe Actually, it works now, but I was not able to...
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://togithub.com/actions/checkout) | action | digest | `b4ffde6` -> `0ad4b8f` | ---...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [undocs](https://togithub.com/unjs/undocs) | [`0.2.20` -> `0.2.21`](https://renovatebot.com/diffs/npm/undocs/0.2.20/0.2.21) | [](https://docs.renovatebot.com/merge-confidence/)...
### 📚 Is your documentation request related to a problem? How to create typed function with RegExp or MagicRegExp input? I write something like ```typescript function getMatchedResult(regexp: R, str: string)...