string.StripExtension

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

Contents

Description

Removes the extension of a path.

Arguments

string Inputstring

The path to change.

Returns

string

Modifiedstring

Examples

Example

Demonstrates the use of string.StripExtension

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

Output:

"garrysmod/lua/modules/string"
Personal tools
Navigation