Function Reference


StringTrimLeft

Trims a number of characters from the left hand side of a string.

StringTrimLeft ( "string", count )

Parameters

string The string to evaluate.
count The number of characters to trim.

Return Value

Returns the string trimmed by count characters from the left.

Remarks

If count is out-of-bounds, an empty string is returned.
StringTrimLeft($str, $n) is functionally equivalent to StringRight($str, StringLen($str) - $n)

Related

StringCompare, StringInStr, StringLeft, StringLen, StringLower, StringMid, StringReplace, StringRight, StringSplit, StringTrimRight, StringUpper

Example

#include <MsgBoxConstants.au3>
Local $sString= StringTrimLeft ("This is a sentence with whitespace.",5); Remove the 5 leftmost characters from the string.
MsgBox ($MB_SYSTEMMODAL,"",$sString)

AltStyle によって変換されたページ (->オリジナル) /