Precompiled regex to find IP version 4 address from the content. Returns --------- object Regex compiled object
()
| 487 | |
| 488 | |
| 489 | def PreCompiledRegexIP(): |
| 490 | """ |
| 491 | |
| 492 | Precompiled regex to find IP version 4 address from the content. |
| 493 | |
| 494 | Returns |
| 495 | --------- |
| 496 | object |
| 497 | Regex compiled object |
| 498 | """ |
| 499 | ipv4reg = re.compile(r"""(([2][5][0-5]\\\\.)|([2][0-4][0-9]\\\\.)|([0-1]?[0-9]?[0-9]\\\\.)){3}""" |
| 500 | + """(([2][5][0-5])|([2][0-4][0-9])|([0-1]?[0-9]?[0-9]))""") |
| 501 | return ipv4reg |
| 502 | |
| 503 | |
| 504 | def getInfoFromData(item_url, item_values, cloudlist, p, regex, ipv4reg, url): |