# Only extract the first number (first octet) of IP addresses.
# Don't extract other numbers like '1024' and '19'.# Use "(?:" to suppress capturing parenethesis.
# Use "\." to match a dot (suppress regex meaning of ".")
# "{3}": Look for 3 iterations (3 iterations of a dot followed by a number).my_regex = r'([0-9]+)(?:\.[0-9]+){3}'