Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-global and case sensitive search flags? #126

Open
acfatah opened this issue Sep 18, 2023 · 1 comment
Open

Non-global and case sensitive search flags? #126

acfatah opened this issue Sep 18, 2023 · 1 comment

Comments

@acfatah
Copy link

acfatah commented Sep 18, 2023

How to define non-global and case sensitive search flags?

In regular expressions, there isn’t a specific flag to explicitly declare a non-global search and case sensitive. The absence of the g and i flags in regular expression is the default way to perform a non-global case sensitive search. Setting the regexFlags option to an empty string seems to fall back to gi. Any workaround?

@mynsinger
Copy link

+1 for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants