last

Get the last n elements from a String.


Syntax


Parameters

  • String subject - The String to extract from.
  • String separator - What to use as the boundary between elements in subject. This defaults to the space character.
  • Number limit - The subject string will be split into a maximum of limit elements. If limit is negative, all components except the first number specified by limit are returned.


Result

  • String - The elements extracted from subject.

Returns a String produced by extracting limit elements from subject on boundaries formed by separator.