title: How to get position of the first letter in a string
body: <p>I need to get position of the first letter in a string.</p>
  
  <p>Follow a basic example. The first letter is <code>T</code>, So I need to know the position of <code>T</code>, for that I can use <code>indexOf("T")</code>.</p>
  
  <p>I would like to get the first letter by regex instead to add the letter hard-coded (<code>T</code>).</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>public class RegexMatches {
      public static void main(String args[]) {
  
          String line = "000 1 This is my message";
          int first = line.indexOf("T");
          line = line.substring(first, line.length());
  
          System.out.println(line);
       }
  } 
  </code></pre>