mIRC Home    About    Download    Register    News    Help

Print Thread
#207982 08/01/09 10:23 PM
Joined: Mar 2008
Posts: 47
N
nok Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2008
Posts: 47
You can read a file.txt?
Code:
$regex($read(texto.txt,%i),/\b(españa|español|española|madrid)\b/giS)

//file.txt
//españa
//español
//española
//madrid
//

nok #207983 09/01/09 12:00 AM
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
I'm not sure about what you want since you're not really clear, but see the /help /filter, with -g, you can perfom a regex match on each line of a text file and then do what you want with them.

For example :

filter -g texto.txt output.txt /\b(españa|español|española|madrid)\b/giS

fill output.txt with all lines that match the regular expression.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard