Synopsis:
   $right(<count> <text>)

Technical:
   * If <count> is omitted, this function returns the empty string.
   * If <text> is omitted, this function returns the empty string.
   * If <count> is less than 0, this function returns the empty string.
   * If <text> is more than <count> characters long, then this function will
     return a copy of the last <count> characters in <text>.
   * If <text> is less than or exactly <count> characters long, then this
     function will return a copy of <text>

Practical:
   Whenever you need to extract the trailing part of a string, you would use
   this function to get it.  This is more useful for fixed-format strings.
   ircII used to use $mid($index(<char> <text>) 9999 <text>) to extract the 
   part of <text> that was after <char>, but in epic, you should instead use
   $after(<char> <text>) because it is faster, more clear, and avoids having
   to copy <text> twice, and it works for strings of all lengths (even really
   long ones).  This can be important if <text> is a function call with side 
   effects.

Returns:
   The last <count> characters in <text>, but if <text> has less than <count>
   characters, then so will the return value.  If you need a result that
   is always <count> characters long, then do something like this:
		$[<count>]right(<count> <text>)

Examples:
   $right(5 biklmnopstv)                       returns "opstv"
   $right(15 biklmnopstv)                      returns "biklmnopstv"
   $right(-2 biklmnopstv)                      returns ""
   $mid($index(@ $userhost()) 999 $userhost()) returns a hostname in an /on.
	-- Note that this construction is obsolete, but is still used by some.

History:
   This function first appeared in ircII.

Cost:
   This function has a relative cost of two deltas. (One inward argument and
	the return value).

See Also:
   left(6), after(6)

