ipv4 constant

Pattern const ipv4

IPv4 regex

Implementation

static const Pattern ipv4 =
    r'^(?:(?:^|\.)(?:2(?:5[0-5]|[0-4]\d)|1?\d?\d)){4}$';