If you pass %c manually to regsubex it's evaluated, for the test you need to get %c plain text with % $+ c for example.

You can use the following pattern to achieve what you want: $regsubex(@a @r b &u i o % $+ c d @e f ~g ,/(?:((?:^| )[@~&%][^ ]+(?=$| ))|(?: |^)[^ ]+(?= |$))/gF,\1\2)

Last edited by Wims; 28/07/22 11:05 PM.

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