.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> Windows Form Controls >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Remove white space in string

Posted By:Blessy Baby       Posted Date: February 20, 2011    Points: 25    Category: Windows Form Controls    URL: http://www.dotnetspark.com  

This function remove white space in sentence or string data
 

For removing white space in strign data, use this javascript function

fnRemoveSpace(string)

{

return string.split(' ').join('');

}

eg:

input- a4 ad ff 22 83 8b 2b d9 83 05 a5 e6 47 e2 fd 91 c6 b6 fe c5

output-a4adff22838b2bd98305a5e647e2fd91c6b6fec5

 

 


     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend