# Note that '^' at the beginning is optional r'^((25[0-5]|2[0-4][0-9]|[01]?[0-9]{1,2}).){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]{1,2})'