Template:StrGet

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search


This is used to extract a substring from within a string, starting from one substring and ending at another.

The usage is {{StrGet|string|start after|end before}}

Example

So {{StrGet|I have 23 elephants in my garage|have|in my}} would return: 23 elephants (There is a space before and after as they were not included in the start after or end before parameters.)