Proper Case / Title Case alias for mIRC

By Vegito on Apr 03, 2015

/*
\/-----------------------------------------------------------\
;                  Proper Case / Title Case                  ;  
;               -----------------------------                ;
;    Will turn a given string into proper case.              ;
;                                                            ;
;    How to use:                                             ;
;                                                            ;
;    $propercase(foo bar)                                    ;
;    //returns Foo Bar                                       ;
;                                                            ;
/\-----------------------------------------------------------/
*/

alias propercase {
  return $regsubex($1-, /(\b[a-z])/g, $upper(\1))
}   

Comments

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.