Показать сообщение отдельно

  #7  
Старый 28.01.2009, 04:46
De-visible
Banned
Регистрация: 06.01.2008
Сообщений: 904
Провел на форуме:
4037638

Репутация: 1821


По умолчанию

PHP код:
#  Link parser
#  Author: De-visible
#  ICQ#:223333575
#  Mega - Script
import re

file_name 
"text.txt"
out_file "out.txt"
= []

with open(file_name) as txt:
    
with open(out_file,'w') as outf:
        for 
line in txt:
            
outf.write(str(re.findall(r'http:\/\/(.*?)\/',line))[2:-2]+"\n")
        print 
"completed" 
 
Ответить с цитированием