globRegex

Return all the paths that match the regex pattern

string[]
globRegex
(
string path_regex
)

Parameters

path_regex string

The path with regex paterns to match.

Examples

import glob : globRegex;

// Use a regex to match all the number files in /proc/
string[] entries = globRegex(`^/proc/[0-9]*$`);
/*
entries would contain:
/proc/111
/proc/245
/proc/19533
/proc/1
*/

Meta