title: How do I find words that only contain/consist of a given char sequence
body: <p>I wish to loop through a dictionary file and find words that contain only the given characters</p>
  
  <p>Example dgo</p>
  
  <p>Desired results: dog, god</p>
  
  <p>NOT words that contain (within them) the given characters</p>
  
  <p>I am working with the following code:</p>
  
  <pre><code>            while((dictionaryWord = br_.readLine()) != null) 
              {   
  
                      if(dictionaryWord.contains(getWord()))
                          System.out.println(dictionaryWord);
  
              }
  </code></pre>
  
  <p>But this gives me all words which contain the given characters -- NOT DESIRED</p>