Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
regex_ip.py
salawank
Aug 5th, 2013
91
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!/usr/bin/python -tt
import
re
f
=
open
(
'data.txt'
,
'r'
)
ip_raw
=
re
.
findall
(
r
'(
\b
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
\b
)'
,
f.
read
(
)
)
ip
=
'
\n
'
.
join
(
set
(
ip_raw
)
)
print
ip
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
PowerShell | 5 min ago | 0.66 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 12 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 25 min ago | 0.39 KB
Untitled
JSON | 33 min ago | 0.03 KB
Arduino - Lettura sensore differenziale MS452...
Arduino | 1 hour ago | 1.59 KB
Задача 5
Python | 1 hour ago | 0.57 KB
CC Mekanism Induction Battery Monitoring V2
Lua | 2 hours ago | 6.67 KB
Задача 4
Python | 2 hours ago | 0.68 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!