title: Match a sentence using pattern
body: <p>I'm working on a program where I have to check if the input match a sentence/string which includes words and numbers using pattern compile. I dont know how many words there be. </p>
  
  <p>This i what some of my code looks like: </p>
  
  <pre><code>Pattern pattern = Pattern.compile("[a-zA-Z][ \\t]*([0-9]*)");
  
  sysln("                          P R O J E C T  P L A N N E R                          ");
  sysln(" -------------------------------------------------------------------------------");
          sysln("                                 Free Resources                                 ");
          sysln("                                                                                ");
          sys(" Enter the project name + the week number &gt; ");
          String s = input.nextLine().trim();
          matcher = pattern.matcher(s);
  
          if (!matcher.matches()){
              sys(" Wrong format -- hit any key to continue &gt; ");
              input.nextLine();
              continue;
          }
  </code></pre>
  
  <p>I have tried just to write Hallo 12, but it outputs the error message. </p>
  
  <p>I found out that [a-zA-Z] only reads one letter, what should i write instead of [a-zA-Z] ? </p>