Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:String2/doc

From Net 7 Portal Wiki

This is the documentation page for Module:String2

Module:String2/doc

From Wikipedia, see:

This module provides enhanced string parsing functions used to implement templates like {{Meta/MissingContentCheck}}.

Usage

  • Returns the index of the first positional parameter pattern which matches, or an empty string if there are no matches for use with #if:
    • {{#invoke:String2|matchAny|source=bar foo|foo|bar}} returns 2
    • {{#invoke:String2|matchAny|source=foo|bar|baz}} returns ""