string.trim

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

string.trim(str)

Description

Removes whitespace from the beginning and end of the given string.

Example 1

string.trim("\n \t\tfoo bar\t ") == "foo bar"
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox