Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "regex/index"

Index

Variables

Variables

Const validUrl

validUrl: RegExp = new RegExp("^(http[s]?:\\/\\/(www\\.)?|ftp:\\/\\/(www\\.)?|www\\.){1}([0-9A-Za-z-\\.@:%_\+~#=]+)+((\\.[a-zA-Z]{2,3})+)(/(.)*)?(\\?(.)*)?")

Checks to see if a given string is a valid url. Accepts http:// or https://. May start also with www (Not mandatory).

type

{RegExp}

Generated using TypeDoc