string.Trim

From Garry's Mod
Jump to: navigation, search
 string.Trim( )

Contents

Description

Removes leading and trailing matches of a string.

Arguments

string Inputstring

The string to trim.

Arguments

string Char=" "

String to match.

Returns

string

Modified string

Examples

Example

Demonstrates the use of string.Trim without second argument.

MsgN(string.Trim(" hi whatsup "))

Output:

"hi whatsup"
Personal tools
Navigation