simulating a grep in Java (Windows)
<p>I have to look for a string "Languages: " with languages after it.</p>

<p>I could for instance look for "Languages: English, German" and
"Languages: German, English" if there are only 2 languages.  If there are 3 I would need to look for 6 different combinations.  For 4 there would be 24 combinations.  For 5 there would be 120, etc., which is unwieldly.</p>

<p>I would like to do something like</p>

<p>grep Languages | grep English | grep German | grep Italian | grep Danish | grep French
(or whatever the languages I am looking for would be).  I don't think we can use grep on windows.  I could use a regular expression but I don't know how to create one that could list languages in any order.</p>

<p>Any suggestions on what to do?  Let's say I have a <strong>List&lt; String > languages</strong> with all the languages I want to look for.</p>