How are you getting that variable with such a value?

You can use $regsubex(PTirc PTirc PTirc PTirc PTnet PTnet PTnet PTnet PTnet PTnet PTnet,/(\w+)(?=.*\b\1\b) */,)


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net