trimMultiLeft

Summary

Removes leading whitespace from the beginning of each line of the string without removing newline characters.

Usage

public string trimMultiLeft()

Returns

The string with whitespace removed from the beginning of each line.

Description

Removes leading whitespace from the beginning of each line of the string without removing newline characters.

Examples

Basic Usage
1
2
3
4
import System;
 
string text = "The quick brown fox\n   jumped over the lazy dog.   ";
Console.log(text.trimMultiLeft()); // "The quick brown fox\njumped over the lazy dog.   "

Share

HTML | BBCode | Direct Link