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

 * New code should strongly consider or .
 * For backward compatibility, both the input and pattern string are trimmed of surrounding whitespace before processing begins. This means you cannot remove three instances of "the " from "the the the thing"; instead you will remove one instance of "the".

Examples
&rarr;

&rarr;

&rarr;

&rarr;

&rarr;

&rarr;