Global

Global

Methods

<private> wildstring.checkRollbackStrings When a match doesn't continue to the end of the string, this function rolls back to try again with the rest of the string(rollbackStrings, patternSubstrings)

Parameters:
Name Type Description
rollbackStrings Array.<string>

The list of substrings that appeared prior to the current match

patternSubstrings Array.<string>

The matching list of pattens that need to be matched before the current pattern

Source:

wildstring.match Check if a string matches a pattern(pattern, string)

Parameters:
Name Type Description
pattern string

The pattern to match using the configured wildcard

string string

The string to test for a match

Source:

wildstring.replace Replace wildcards in a pattern with strings (string interpolation)(pattern, strings)

Parameters:
Name Type Description
pattern string

The start string, using wildcards as placeholders

strings string | Array.<string>

The string or strings to replace the wildcards in the pattern. If you pass a single string, it will replace all the wildcards with the string. If you pass an array of strings, they will replace the wildcards in order from left to right.

Source:
Throws:
  • The number of items in the strings array (if you pass an array) must match the number of wildcards in the pattern string.

    Type
    Error
  • You need to pass both parameters

    Type
    Error
  • You need to pass the right types

    Type
    Error