0

I've done some research and see the pattern for regular expression to match ipaddress is

pattern = r'\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}'
mo = re.findall(pattern, line(s))

but I'm trying to figure out what the comma is meaning instead of a dash i.e \d{1-3}

Thanks!

Wiktor Stribiżew
  • 561,645
  • 34
  • 376
  • 476
Victor
  • 153
  • 10

0 Answers0