]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: add DefineRegex 'all' scheme for multiple pattern matches (Syntax 9) HEAD master
authorJaroslav Kysela <perex@perex.cz>
Mon, 4 May 2026 10:51:49 +0000 (12:51 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 4 May 2026 10:51:49 +0000 (12:51 +0200)
commit3592e5c7812bfddad932f176e257e8797d71a51b
treee78bd45fe98eb34b75c258e3d2603db929d74036
parent96f23dda144e1f2b3f192022edc191af3c389243
ucm: add DefineRegex 'all' scheme for multiple pattern matches (Syntax 9)

Extend DefineRegex to support two matching schemes:
- "first" (default): matches pattern once, extracts capture groups
- "all": matches pattern multiple times, extracts all matches

The "all" scheme creates variables with naming pattern nameN for Nth
match and nameN_M for Nth match's Mth capture group, enabling
extraction of repeating patterns from strings.

Updated documentation with detailed examples and comprehensive
description of regex flags, schemes, and variable naming conventions.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/ucm_confdoc.h
src/ucm/ucm_regex.c