db&w documentation wiki

finest software | finest docs

User Tools

Site Tools


vai:dbw_tb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vai:dbw_tb [2026/09/16 17:40] – created lightwolfvai:dbw_tb [2026/09/22 13:31] (current) – lightwolf
Line 1: Line 1:
 +<- lua_fs ^ lua_scripting ^ ->
 ====== dbw_tb - A toolbox for Lua ====== ====== dbw_tb - A toolbox for Lua ======
  
-====== Glob Matching in C++ with `<regex>` ======+This is a custom library of tools designed to work with vai. 
 + 
 +<code lua>local tb = require("dbw_tb")</code> 
 + 
 +Currently there's only one function to match a string to a pattern using advanced globbing: 
 + 
 +<code lua>glob_match (string, pattern, caseInsensitive)</code> 
 + 
 +The pattern can be the following: 
 + 
 +==== Glob Matching in C++ with `<regex>` ====
  
 This library provides a **flexible glob matching** solution in C++ using the `<regex>` library. It supports: This library provides a **flexible glob matching** solution in C++ using the `<regex>` library. It supports:
  
-  * **Case-insensitive matching** 
   * **Character classes** (`[a-z]`, `[!0-9]`)   * **Character classes** (`[a-z]`, `[!0-9]`)
   * **Recursive globbing** (`**`)   * **Recursive globbing** (`**`)
Line 12: Line 22:
  
 ===== Features ===== ===== Features =====
- 
-  * **Case-Insensitive Matching**: 
-    - The `(?i)` flag is prepended to the regex to enable case-insensitive matching. 
-    - Example: `*.txt` matches `file.txt`, `FILE.TXT`, and `File.TxT`. 
  
   * **Character Classes**:   * **Character Classes**:
vai/dbw_tb.1789573211.txt.gz · Last modified: by lightwolf