EarthWeb
Developer.com
Site
windows 2000
visual c++
java
visual basic
javascripts
recommend it
 
Book
thinking in java
 
Interact
forum
guest book
jobs
jokes
what's new

share code
 
Resource
add resource
modify resource
new resource
 

[Internet Jobs]
-----
Java by E-mail:

Get the weekly e-mail highlights on Java!
-----

-

Remove control characters from a string


Author: Real Gagnon
Author's WebSite: http://tactika.com/realhome/realhome.html


function removeNL(s) {
   /*
   ** Remove NewLine, CarriageReturn and Tab characters from a String
   **   s  string to be processed
   ** returns new string
   */
   r = "";
   for (i=0; i < s.length; i++) {
     if (s.charAt(i) != '\n' &&
         s.charAt(i) != '\r' &&
         s.charAt(i) != '\t') {
       r += s.charAt(i);
       }
     }
   return r;
   }



Posted On: 10-Jul-1999

internet.commerce



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy