unjs / magic-regexp

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

Support match everything in preset inputs #380

Open tmg0 opened 4 months ago

tmg0 commented 4 months ago

🆒 Your use case

I want to match all characters within a script tag, but since there isn't a preset input to match everything, so I have to manually write ([\s\S]*?) for match the code.

🔍 Alternatives you've considered

Maybe an export named every can be added to preset inputs, or export createInput to allow for custom input definitions could be a solution ?

ℹī¸ Additional info

No response