unjs / magic-regexp

A compiled-away, type-safe, readable RegExp alternative
https://regexp.dev
MIT License
3.84k stars 53 forks source link

Lazy quantifier #228

Open alesvojta opened 1 year ago

alesvojta commented 1 year ago

📚 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 regex: (?:\w|-)+?. The main part I'm asking here is the +?.

🔍 Where should you find it?

No response

ℹī¸ Additional context

No response

didavid61202 commented 1 year ago

Hi @alesvojta,

Thanks for the suggestion! I'll work on this and hopefully will add this very soon 👍