urlFlexible property

RegExp urlFlexible
final

URL with optional protocol

Implementation

static final RegExp urlFlexible = RegExp(
  r'^(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$',
);