On 11/17/2009 2:48 AM, art wrote:ã> Hi all,ã> ã> Is there a way to trim whitespaces at the beginning of strings, like truncsp()?ãã//include this somewhere...ãString.prototype.trim = function() {ã return this.replace(/^[\s\r\n]+|[\s\r\n]+$/g, '');ã}ãString.prototype.ltrin = function() {ã return this.replace(/^[\s\r\n]+/g, '');ã}ãString.prototype.ltrin = function() {ã return this.replace(/[\s\r\n]+$/g, '');ã}ããnow you can use yourstring.ltrim()ãã-- ãMichael J. Ryan -
http://tracker1.info/ãã... B5: Then what kind of head of security would I be if I let people like me ãknow things that I'm not supposed to know? I know what I know because I have ãto know it. And if I don't have to know it, I don't tell me, and I don't let ãanyone else tell me either.ãã---ã þ Synchronet þ Roughneck BBS -
telnet://roughneckbbs.com - www.roughneckbbs.comã