<human>:  Using a RegEx to match IP addresses in Python
<bot>: Here is some code to validate IP address using Regex

pat = re.compile('^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.