title: Is there a way in java regex to define a certain set of letters to look for?
body: <p>In other words, I want to make sure the user is entering either A, a, L, or l. My solution so far is this but I have not gotten the regex correct.</p>
  
  <pre><code>while(!qtype.hasNext("A| L") || !qtype.hasNext("a| l")){
      System.out.print("Please enter 'A' or 'L':");
      qtype.next().toUpperCase();
  }
  qal = qtype.next().toUpperCase();
  </code></pre>