egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Parsing a text file and remove a line

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
maxoudu328
Voice


Joined: 02 May 2006
Posts: 4

PostPosted: Thu Jun 08, 2006 4:31 am    Post subject: Parsing a text file and remove a line Reply with quote

Hi,

I do a script for eSport team, ppl management and i add all players avi in a text file, read it isen't hard but i want parse the output of the reading fonction and remove a line from his mask.

Example :

In the text file :
Code:

Pseudo_Irc[1]  Pseudo_Irc[1]@user.quakenet.org
Pseudo_Irc[2]  Pseudo_Irc[2]@user.quakenet.org
Pseudo_Irc[3]  Pseudo_Irc[3]@user.quakenet.org


i want remove 'Pseudo_Irc[2]' finded by his mask 'Pseudo_Irc[2]@user.quakenet.org' ...

If you can give me an example of that or some links about regex and searching (google hate me for this prob) ...

thx a lot and sorry for my bad english but im french :>
Back to top
View user's profile Send private message
NTHosts
Op


Joined: 10 Oct 2005
Posts: 100
Location: UK

PostPosted: Thu Jun 08, 2006 8:25 am    Post subject: ... Reply with quote

Search the forum, this has been done not long ago Wink
_________________
www.NT-Hosts.Net - More than just a host
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber