删去字符串中的"空白符".
StringStripWS ( "字符串", 标志 )
字符串 | 目标字符串. |
标志 | 指定要执行的删除操作(要同时应用多个操作请把相应的数值相加): 1 = 删除开头的(左边)空白符 2 = 删除结尾的(右边)空白符 4 = 删除每个字符之间的双空格(或更多) 8 = 删除所有空格(这将忽略其它所有标志) |
Local $text = StringStripWS(" this is a line of text ", 3)
MsgBox(0, "Stripped from both ends", $text)