Garry's Mod Wiki

string.Trim

string string.Trim( string Inputstring, string Char )

Description

Removes leading and trailing matches of a string.

Arguments

1 string Inputstring
The string to trim.
2 string Char
String to match.

Returns

1 string
Modified string

Example

Demonstrates the use of string.Trim without second argument.

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

Page Links


Special Pages


Wikis

?

Render Time: 24ms

DB GetPage 4
Generate Html 5
SaveChanges (1) 8
Render Body 0
Render Sidebar 5