Continue with my JAVA test series.

This is the last one of the test series. It also about the regular expressions.

 1 public   class  testreplaceall
 2 {
 3      public   static   void  main(String args[])
 4      {
 5         String s  =   " aaaaa= " ;
 6         s =  s.replace( " = " , "" );
 7         System.out.println(   "s  is  "+s );
 8         s =   " aaaa. " ;
 9         s =  s.replaceAll( " \\. " , "" );
10         System.out.println( "s  is  "+s );
11         s =   " aaaa. " ;
12         s =  s.replaceAll( " . " , "" );
13         System.out.println( "s  is  "+s );
14     }

15 }

16         

The . stand for all letter, and the Escape character is \\