pattern_clustering.regexp.make_re_ipv6
- make_re_ipv6(lower_case: bool = True, upper_case: bool = True) str [source]
Builds the regular expression catching IPv6 addresses.
Note this is not an exact match contrary to
make_re_ipv6_strict
, but the resulting automaton is significantly faster (and should be accurate enough for most of practical use cases).- Parameters
lower_case (bool) – Pass
False
to discard lower case values.upper_case (bool) – Pass
False
to discard upper case values.
- Returns
The string storing the regular expression.