This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Parsing a text file and remove a line

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
m
maxoudu328
Voice
Posts: 4
Joined: Tue May 02, 2006 1:26 pm

Parsing a text file and remove a line

Post by maxoudu328 »

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: Select all

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 :>
N
NTHosts
Op
Posts: 100
Joined: Mon Oct 10, 2005 9:57 pm
Location: UK
Contact:

...

Post by NTHosts »

Search the forum, this has been done not long ago ;)
www.NT-Hosts.Net - More than just a host
Post Reply