Jethro_ i think you'll find the novelty of $regsubex() will soon wear off :P
and we should really be checking if each nick's type 5 mask (the full address) is matched by $banmask, as $banmask could be something other than a type 2 mask. mirc does this checking for us in $ialchan($banmask,#,N).nick which returns the Nth nick affected by the ban