magic-regexp icon indicating copy to clipboard operation
magic-regexp copied to clipboard

A compiled-away, type-safe, readable RegExp alternative

Results 46 magic-regexp issues
Sort by recently updated
recently updated
newest added

### 🆒 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`....

enhancement

## 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...

bug

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. ###...

bug

### 📚 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...

documentation

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...

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://togithub.com/actions/checkout) | action | digest | `b4ffde6` -> `0ad4b8f` | ---...

dependencies
chore

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](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) | [![age](https://developer.mend.io/api/mc/badges/age/npm/undocs/0.2.21?slim=true)](https://docs.renovatebot.com/merge-confidence/)...

dependencies
chore

### 📚 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)...

documentation