Meta commented on a Page, Wildcard Nick List  -  Oct 26, 2013

Lol why not regex?

alias nicksearch {
  var %r $regsubex($str(.,$nick($1,0)),/./g,$iif( [ $2 ] iswm $nick( [ $1 ] ,\n),$v2 $+ $chr( [ $3 ] )))
  return $deltok($iif($4,$sorttok(%r,$3),%r),,$3)
}

Edit: Don't need a capture group. Also, now removes null tokens.

SReject  -  Oct 27, 2013

lol, why not fline?

alias nicksearch {
  var %r $regsubex($str($chr($3),$nick($1,0)),/(?=.)/g,$fline( [ $1, $2 ] ,\n,1).text)
  return $iif($4,$sorttok(%r,$3),$deltok(%r,,$3))
}
Sign in to comment

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.