Garry's Mod Wiki

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"

Page Links


Special Pages


Wikis

?

Render Time: 89ms

DB GetPage 60
Generate Html 3
SaveChanges (1) 10
Render Body 0
Render Sidebar 13