unjs / magic-regexp

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

Home Page:https://regexp.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support match everything in preset inputs

tmg0 opened this issue Β· comments

πŸ†’ 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