Skip to content

Add option to make regular expression --case-sensitive #483

Description

@h-ssh

Is there a way to run BE with case sensitive regex?
By default it searches for all matches case insensitive

I have tried changing the value in be20_api/regex_vector.cpp and rebuilding but it still returns a case insensitive result

void regex_vector::push_back(const std::string& val) {
    RE2::Options options;
    options.set_case_sensitive(true);

RE2 allows for appending ?i to the end of the regex to allow for case insensitivity.
A --case-insensitive flag could be useful and default BE to case sensitive.

Reference

RE2 ignore case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions