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
  • 607,720
  • 39
  • 448
  • 563
Victor
  • 173
  • 1
  • 10

0 Answers0