lastword

Get the last n words from a String.


Syntax


Parameters

  • String subject - The String to extract from.
  • Number limit - A maximum of limit words will be extracted from the subject string.


Result

  • String - The words extracted from subject.

Returns a String produced by extracting limit words from subject. A "word" is considered to be a sequence of letters or numbers, including international characters. Whitespace and punctuation characters split the words up, but will not increase the word count.