title: Regular expression to replace everything but alphabets
body: <p>What would be a concise regular regular expression to remove everything from a string that is not an alphabet                 </p>
  
  <pre><code>        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
      int T=0; 
      try{
          T= Integer.parseInt(br.readLine());
  
          while(T&gt;0)
                  String input=br.readLine();
                  **String res= input.replaceAll("^[a-zA-Z]"," " );**
                  System.out.println(res);
  </code></pre>
  
  <p>Also tried </p>
  
  <pre><code>      input.replaceAll("[^a-zA-Z]]"," " )
  </code></pre>
  
  <p>Neither of them is replacing anything from the input string.The input string remains just as it was</p>
  
  <p>Edit:</p>
  
  <pre><code>         input.replaceAll("[^a-zA-Z]"," " )  //works well
           input.replaceAll("^[a-zA-Z]"," " )  //replaces first char of string
  </code></pre>