Utilities

For example, this returns a Boolean true | false if a particular string matches any one of a series of patterns:

EntFsCorr.Utils.matches_patternFunction
matches_pattern(patterns, str::AbstractString)

Check if str matches any Regex in patterns.

Examples

julia> using EntFsCorr.Utils: matches_pattern

julia> matches_pattern([r"foo", r"bar", r"baz"], "onefootwo")
true

julia> matches_pattern([r"foo", r"bar", r"baz"], "quuuuux")
false
source