regExpDialect function

RegExp regExpDialect(
  1. Map<String, String> dialectWords,
  2. String pattern, {
  3. bool multiLine = false,
  4. bool caseSensitive = true,
})

Builds a RegExp using a dialect of words (Map parameter dialectWords).

Each word in the dialect can be a RegExp pattern as string, but with word place holders in the syntax.

A word place holder in the syntax is a word name (key in dialectWords Map) in the format: $wordName

pattern The final pattern, constructed using the dialect and word place holders. multiLine If true the returned RegExp will be multiLine. caseSensitive If true the returned RegExp will be case-sensitive.

Implementation

RegExp regExpDialect(Map<String, String> dialectWords, String pattern,
        {bool multiLine = false, bool caseSensitive = true}) =>
    RegExpDialect(dialectWords,
            multiLine: multiLine, caseSensitive: caseSensitive)
        .getPattern(pattern);