Advertisement
iPeer

Changes text into the numbers it would represent on a phone

Jun 15th, 2011
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.36 KB | None | 0 0
  1. alias l2p {
  2.   echo -tg $regsubex($1-,/([#\*a-z ]{1})/gi,$pk(\t))
  3. }
  4. alias -l pk {
  5.   if ($1 isin abc) return 2
  6.   if ($1 isin def) return 3
  7.   if ($1 isin ghi) return 4
  8.   if ($1 isin jkl) return 5
  9.   if ($1 isin mno) return 6
  10.   if ($1 isin pqrs) return 7
  11.   if ($1 isin tuv) return 8
  12.   if ($1 isin wxyz) return 9
  13.   if ($1 isin *#) return $1
  14.   else return 0
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement