Hey here's an update for the 'part or nick' alias:
$vcmp.partofnick($vcmp.name(%id))
alias vcmp.partofnick {
var %a = 1, %b = $1, %c, %d, %e, %f, %g, %h
while (%a <= $len(%b)) {
%c = $mid(%b,%a,1)
if (%c == $chr(40)) { %d = $v2 | %e = $chr(41) | !break }
elseif (%c == $chr(91)) { %d = $v2 | %e = $chr(93) | !break }
!inc %a
}
%f = $pos(%b,%d,1) | %g = $pos(%b,%e,1)
if ((!%d) || (!%f) || (!%g)) { !return }
%h = $mid(%b,%f,$calc((%g - %f) + 1))
!return $iif($len(%h) > 2,%h)
}
It will work for nicks like:
[XX]Testing Test[XX]ing Testing[XX] (XX)Testing Test(XX)ing Testing(XX)