regexValidUrl top-level constant

String const regexValidUrl

Matches http/https URLs and common URL patterns.

Implementation

const String regexValidUrl =
    r'^(https?:\/\/)?(www\.)?[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)+([\/?#][^\s]*)?$';