MCPcopy
hub / github.com/nsonaniya2010/SubDomainizer / PreCompiledRegexIP

Function PreCompiledRegexIP

SubDomainizer.py:489–501  ·  view source on GitHub ↗

Precompiled regex to find IP version 4 address from the content. Returns --------- object Regex compiled object

()

Source from the content-addressed store, hash-verified

487
488
489def 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
504def getInfoFromData(item_url, item_values, cloudlist, p, regex, ipv4reg, url):

Callers 1

SubDomainizer.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected