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: 62ms

Session 0
DB GetPage 10
Generate Html 10
SaveChanges 29
Render Body 0
Render Sidebar 10