This is a custom library of tools designed to work with vai.
local tb = require("dbw_tb")
Currently there's only one function to match a string to a pattern using advanced globbing:
glob_match (string, pattern, caseInsensitive)
The pattern can be the following:
This library provides a flexible glob matching solution in C++ using the <regex> library. It supports:
[a-z], [!0-9])**)|, ()){a,b}.txt)[a-z], [A-Z], [0-9], [!0-9] (negation), and [abc] (explicit set).[a-z][0-9].txt matches a1.txt but not 1.txt.**):** is converted to .* in regex, allowing it to match any number of subdirectories.**/file.txt matches file.txt, dir/file.txt, and dir/subdir/file.txt.| and ()):@(pattern1|pattern2) for OR logic.file@(A|B).txt matches fileA.txt and fileB.txt.{a,b}.txt to match a.txt or b.txt.{a,b}.txt matches a.txt and b.txt but not ab.txt.