str = "hello_+asdf2312+887441a+asdf"
table = {}
string.gsub(str, "([%w_]+)",
function(w)
table.insert(table,w)
end
end
fn_flag = string.find(filename, "\\")
if fn_flag then
dest_filename = string.match(filename, ".+\\([^\\]*%.%w+)$")
end
fn_flag = string.find(filename, "/")
if fn_flag then
dest_filename = string.match(filename, ".+/([^/]*%.%w+)$")
end
str = " helloa,ni hao (asdfasdf) "
newstr = string.gsub(str,"%b()","")
newstr = string.gsub(newstr, "^%s*(.-)%s*$", "%1")
print(newstr)---->helloa,ni hao