Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  This pattern ([0-9][0-9]?[0-9]][.])+ matches one, two or three digits followed by a . and also matches repeated patterns of this. This wold match an IP address (albeit not strictly).
that pattern (once you fixed the typo) would not match a whole ip address unless you allowed it to also swallow the character after the last octet, which wouldn't work at, say, end of line


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: