Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Addition of regex flags #116

Open
emahuni opened this issue Sep 28, 2021 · 0 comments
Open

Addition of regex flags #116

emahuni opened this issue Sep 28, 2021 · 0 comments

Comments

@emahuni
Copy link

emahuni commented Sep 28, 2021

Summary

Ability to set, usually necessary, regexp flags. It may not be all, but just basic ones.

Motivation

Attempting to search for the following regexp '.*?version__' when it's known that it may have different case leads to a regexp like so '.*?(?:version|VERSION|Version)__' instead of just '.*?version__' with the "i" flag for a non-case-sensitive pattern.

Describe alternatives you've considered

const Oni = OnigRegExp (`.*?version__`, 'i');
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant