• Matches a URI using the RFC 3986 standard. Matches any scheme.

    Parameters

    • global: boolean = true

      Whether to match globally.

    Returns RegExp

    A RegExp matching a URI.

    Example

    Construct a URI Placeholder Regex

    const uriPlaceholderRegex = Matches.Container("uri", [], Matches.URI());
    console.log(uriPlaceholderRegex.test("{{uri:gopher://sdf.org:70/1/users/s.kaplan}}")); // true
    console.log(uriPlaceholderRegex.test("{{uri:hello, world!}}")); // false

    See

Generated using TypeDoc