Wolfram|Alpha

Computing...

Input interpretation:

StringTrim  (Wolfram Language symbol)


Basic examples:

Remove whitespace from ends of strings:\nIn[1]:=StringTrim[   aaa bbb ccc   ]\/\/FullForm\nOut[1]=aaa bbb ccc\nRemove multiple character types:\nIn[1]:=StringTrim[++++aaa bbb ccc----, (+|-)...]\/\/FullForm\nOut[1]=aaa bbb ccc\nRemove initial space characters using a regular expression pattern:\nIn[1]:=StringTrim[   aaa bbb ccc   , RegularExpression[^ *]]\/\/FullForm\nOut[1]=aaa bbb ccc

ComputingComputing...