| Programming C# C++ (7) Delphi (617) Java (8) JavaScript (31) perl (9) mysql (3) perl CGI (3) php (4) VBScript (1) Visual Basic (1)
|
Trim blank space at the beginning and end of a string
(1 votes). Leave comments and/ or rate it.
Question: How do I strip blank space from the beginning/end of a string? In other language this is usually called Trim().Answer: The best solution is doing it in two steps (faster than the typical first attempt to do it with one statement.
Comments:
| ||||||||||||||||||||||||||||