Thread Tools Display Modes
04-22-13, 08:50 AM   #1
Spawnova
A Warpwood Thunder Caller
 
Spawnova's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2012
Posts: 96
remove spaces

How would i go about removing spaces from the text i have stored in a variable

I have tried string.gsub(message, "%s", "")
I have tried string.gsub(message, " ", "")
and
str = strtrim(message)
str = strtrim(message, "%s")
  Reply With Quote
04-22-13, 08:55 AM   #2
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
str = string.gsub(message, "%s", "")
  Reply With Quote
04-22-13, 08:58 AM   #3
Spawnova
A Warpwood Thunder Caller
 
Spawnova's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2012
Posts: 96
Ofcourse lol, Thanks =)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » remove spaces


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off