Skip to content

Modern String ClipLeft

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › String Library › String Library › ClipLeft

ClipLeft

Removes a number of characters from the start.

Syntax

ClipLeft( s, count )

Notes

  • O(n)

Examples

#import "std/strings"
using strings

print ClipLeft( "1234567890", 3 )     '' 4567890
print ClipLeft( "1234567890", 0 )     '' 1234567890 -- 0 or less removes nothing
print ClipLeft( "1234567890", 99 )    '' (empty) -- past the length removes everything

'' Dropping a known prefix
print ClipLeft( "--verbose", 2 )      '' verbose

Library: String Library
Category: String Library
Documented under: The Functions

Clone this wiki locally