Skip to main content

REGEX_IS_URL

Regular expression to validate an URL.

Type

RegExp

Example

import { REGEX_IS_URL } from "@tripetto/builder";

if (REGEX_IS_URL.test("https://tripetto.com")) {
console.log("That's valid URL!");
}