Welcome
The $right identifier will return the last N characters in a string.
[edit]
Format
$right(<string>,<N>)
[edit]
Parameters
- <string> The string to work with.
- <N> The number of characters to return.
[edit]
Properties
None.
[edit]
Points To Note
If you supply a negative value for N $right will return <length of string> - N characters.
[edit]
Examples
//echo -a $right(the,2)
Output: he
//echo -a $right(hihi,-1)
Output: ihi
[edit]
Hacks
None.
[edit]
Related Articles
[edit]
Related Commands
None.
[edit]
Related Events
None.
[edit]
Related Identifiers
$count, $left, $len, $mid, $pos, $poscs
| Text and Number Identifiers |
|---|
| $abs • $acos • $and • $asc • $asin • $atan • $base • $biton • $bitoff • $bytes • $calc • $ceil • $chr • $compress • $cos • $count • $decode • $decompress • $encode • $floor • $int • $isbit • $islower • $isupper • $left • $len • $log • $longip • $lower • $mid • $noqt • $not • $or • $ord • $pos • $poscs • $qt • $rand • $remove • $removecs • $replace • $replacecs • $replacex • $replacexcs • $right • $round • $sin • $sqrt • $str • $strip • $stripped • $tan • $upper • $wrap • $xor |