Garry's Mod Wiki

string.StripExtension

string.StripExtension

string string.StripExtension( string Inputstring )

Description

Removes the extension of a path.

Arguments

1 string Inputstring
The path to change.

Returns

1 string
Modifiedstring

Example

Demonstrates the use of string.StripExtension

MsgN(string.StripExtension("garrysmod/lua/modules/string.lua"))
Output: "garrysmod/lua/modules/string"

Special Pages


Wikis

?

Render Time: 38ms

DB GetPage 21
Generate Html 3
SaveChanges (1) 6
Render Body 0
Render Sidebar 6