• Matches an HTTP/S URL.

    Parameters

    • global: boolean = true

      Whether to match globally.

    Returns RegExp

    A RegExp matching an HTTP/S URL.

    Example

    Construct an HTTP URL Placeholder Regex

    const httpURLPlaceholderRegex = Matches.Container("url", [], Matches.HTTPURL());
    console.log(httpURLPlaceholderRegex.test("{{url:https://www.google.com}}")); // true
    console.log(httpURLPlaceholderRegex.test("{{url:hello, world!}}")); // false

    See

Generated using TypeDoc