Scakk commented on a Page, Filter String  -  Aug 22, 2008

Or full on alias

Code:

alias filtering {
  if ($isid) {
    if ($prop = c) {
      var %string $1-, %e 256
      while (%e) {
        if (($chr(%e) isalpha) || ($chr(%e) isnum)) { %string = $remove(%string, $chr(%e)) }
        dec %e
      }
      return $iif(%string, Results for Characters: %string , No results for Characters.)
    }
    if ($prop = l) { 
      var %string $1-, %e 256
      while (%e) {
        if ($chr(%e) !isalpha) { %string = $remove(%string, $chr(%e)) }
        dec %e
      }
      return $iif(%string, Results for Letters: %string , No results for Letters.)
    }
    if ($prop = n || !$prop) {
      var %string $1-, %e 256
      while (%e) {
        if ($chr(%e) !isnum) { %string = $remove(%string, $chr(%e)) }
        dec %e
      }
      return $iif(%string, Results for Numbers: %string , No results for Numbers.)
    }
  }
}
 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.