Merely
|
  |
| Joined: 07 Dec 2010 |
| Total Posts: 17266 |
|
|
| 18 Nov 2011 04:02 PM |
For example:
s = [[ sdjflksjfdl ]]
What pattern do I use such that
s:gsub(pattern, "") --> sdjflksjfdl |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2011 04:04 PM |
White-space meaning... space? If so, just use this:
local String = [==[ No white space shall be saved ]==] String = String:gsub(" ", "") String = String:gsub("\t", "") |
|
|
| Report Abuse |
|
|
Merely
|
  |
| Joined: 07 Dec 2010 |
| Total Posts: 17266 |
|
|
| 18 Nov 2011 04:06 PM |
| The %s class is perfectly fine for my purposes. However, I don't want to remove whitespace from the interior of the string, only the outside. |
|
|
| Report Abuse |
|
|
Merely
|
  |
| Joined: 07 Dec 2010 |
| Total Posts: 17266 |
|
|
| 18 Nov 2011 04:14 PM |
| Never mind if you have this problem just search it up. |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2011 04:24 PM |
| i never get string patterns :O |
|
|
| Report Abuse |
|
|