Template:Trim leading/doc

Usage
Trims up to six instances of &lt;prefix&gt; (such as: 0 or "anti-") from the beginning of &lt;input&gt;. &lt;Prefix&gt; is set to "0" by default (for removing leading zeroes from numbers). Template will not properly work beyond the first whitespace in the input.

Limitations

 * Up to 100 chararacters in the input string. If possible, first check length of input string using Str len. Using strings longer than 100 characters may result in the error " max index is 100 for str_sub ".
 * Limited set of characters.
 * Snags on whitespace.
 * Expensive.

Examples
&rarr;

&rarr;

&rarr;

&rarr;

&rarr;

&rarr;

Technical
This template uses parser function and templates strlen_quick and str_right.