Skip to content Skip to footer navigation
You are reading the docs for an old version of Statamic. Consider upgrading to Statamic 6.

Remove Left Modifier

Ensures that the string never begins with a specified string.

twitter: @statamic
<a href="http://twitter.com/{{ twitter | remove_left('@') }}">Twitter</a>
<a href="http://twitter.com/{{ Statamic::modify($twitter)->removeLeft('@') }}">Twitter</a>
<a href="http://twitter.com/statamic">Twitter</a>