shaker-0.4.3: simple and interactive command-line build tool

Shaker.Regex

Description

Allow to filter a list of string with include and exclude patterns

Synopsis

Documentation

processListWithRegexpSource

Arguments

:: [String]

Initial list to filter

-> [String]

exclude patterns (regex)

-> [String]

include patterns (regex)

-> [String]

List with all elements matching include patterns minus all elements matching exclude patterns

Filter all elements matching include patterns and remove all elements matching exclude patterns to the result.

If no include pattern is given, all elements are accepted minus those matching exclude patterns.

If no exclude pattern is given, all elements matching include patterns are taken.