Javascript Trim LTrim and RTrim Functions


/ Published in: JavaScript
Save to your folder(s)

his set of Javascript functions trim or remove whitespace from the ends of strings. These functions can be stand-alone or attached as methods of the String object. They can left trim, right trim, or trim from both sides of the string. Rather than using a clumsy loop, they use simple, elegant regular expressions.

URL: http://www.somacon.com/p355.php

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.