globRegex

Return all the paths that match the regex pattern

string[]
globRegex
(
string path_regex
)

Parameters

path_regex
Type: string

The path with regex paterns to match.

Examples

1 import glob : globRegex;
2 
3 // Use a regex to match all the number files in /proc/
4 string[] entries = globRegex(`^/proc/[0-9]*$`);
5 /*
6 entries would contain:
7 /proc/111
8 /proc/245
9 /proc/19533
10 /proc/1
11 */

Meta