Convert a glob to a regular expression, supercharged⚡️
- Supports authentic glob syntax
- Supercharged with regexp expressions
- Automatic capture groups for quick grab of the info you want
#include "ReGlob.hpp"
ReGlob addes the ability to capture wildcard matches in glob:
auto regexp1 = ReGlob(R"*/*.js", {.capture = true});
//
auto regexp2 = ReGlob(R"**/[a-z].js", {.bash_syntax = true, .globstars = true, .capture = true});
//
ReGlob enhanced glob by adding the ability to escape regexp control characters:
// Without escaping
auto regexp3 = ReGlob(R"^[]{}$", {.full_match = false});
//
// With escaping
auto regexp4 = ReGlob(R"\^\[\]\{\}\$", {.full_match = false});
//
MIT