Stats

Comments Posted By Mike M. Lin

Displaying 1 To 1 Of 1 Comments

Removing trailing spaces in eScript

Here’s a slick one-liner for you, using regular expressions.

function trim (s)
{ // takes a string, removes leading and trailing whitespace
// characters. returns the resulting ‘trimmed’ text.

return (s.replace (/^s+/, “”).replace (/s+$/, “”)); // all at once
}

Comment Posted By Mike M. Lin On January 26, 2009 @ 11:15 pm

«« Back To Stats Page

VN:F [1.8.2_1042]
Rating: 0.0/5 (0 votes cast)
VN:F [1.8.2_1042]
Rating: 0 (from 0 votes)
Comments (1) Trackbacks (0)
  1. vishnu
    5:15 am on March 30th, 2010

    Hi, i am recently installed siebel in local machine and done DBextract. but when i am doing full get from server it was taking much time the speed is only 15 rows per second. any one can give me an idea about this. how to solve this problem. immeidate responce is appreciated.

Leave a comment

No trackbacks yet.