isURL method

bool isURL()

Return whether input matches regex of url.

Implementation

bool isURL() {
  return matches(regexUrl);
}