mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2003
Posts: 7
P
P4k3 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Nov 2003
Posts: 7
Could someone help me out with this one? How do I make a small script to search a large .txt-file for a specific word and return $true if the word exists and $false if not. $read(file, w, word) didn't suit me because I don't want it to match words that are not exact.

Hopefully someone understands what I want and can help. Thx in advance.

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Try $read(file,r,/\bword\b/i)

Btw, if you're not sure that people will understand what you need, all you have to do is give as many examples as you feel necessary, like this:

"For example, I want to scan the file for the word hi but mIRC should not find lines containing this"

Joined: Nov 2003
Posts: 7
P
P4k3 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Nov 2003
Posts: 7
Thx, that worked great! <3


Link Copied to Clipboard