You can also do:

regsubex version:

alias a4 { return $regsubex($1,/\[[^]]+\]/g,) }

regsub version:

alias a4 { var %r | noop $regsub($1,/\[[^]]+\]/g,,%r) | return %r }

.echo -q can be used in place of noop if someone uses an older copy of mirc that doesn't recognize noop command.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.