From 35943491b9bbac36eb51ac06e53896c7a88a05f6 Mon Sep 17 00:00:00 2001 From: mpenning Date: Fri, 27 Oct 2023 07:03:03 -0500 Subject: [PATCH] Fix IPv6 example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9fe0e63..d0a4cdc 100644 --- a/README.md +++ b/README.md @@ -203,7 +203,7 @@ for ccp_obj in parse.find_objects('^interface'): # Get a dict() from re_match_iter_typed() by caling it with 'groupdict' intf_dict = _obj.re_match_iter_typed( # Add regex match-groups called 'v6addr' and an optional 'ipv6type' - r"ipv6\s+address\s+(?P\S.+)\s*(?Peui.64|link.local)*$", + r"ipv6\s+address\s+(?P\S.+?\d)\s*(?Peui.64|link.local)*$", # Cast the v6addr regex match group as an IPv6Obj() type groupdict={"v6addr": IPv6Obj, "v6type": str}, # Default to None if there is no regex match