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

Addition of regex flags #116

Description

@emahuni

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');

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions