cIsURL property

bool get cIsURL

Checks if the string is a valid URL.

Implementation

bool get cIsURL {
  var reg = RegExp(
    r"^((((H|h)(T|t)|(F|f))(T|t)(P|p)((S|s)?))\://)?(www.|[a-zA-Z0-9].)[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,6}(\:[0-9]{1,5})*(/($|[a-zA-Z0-9\.\,\;\?\'\\\+&%\$#\=~_\-]+))*$",
  );
  return reg.hasMatch(this);
}