title: Regular expression to find specific words in a text file in C#?
body: <p>I have written a console app that reads in a text file full of data.</p>
  
  <p>I had to extract any telephone numbers from it and put them into a results file.</p>
  
  <p>I used several RegEx's to do this to cover several different formats of telephone numbers i.e. UK, US, international etc. </p>
  
  <p>Here is an example of one I used -</p>
  
  <pre><code>string sPattern = "^\\d{3}-\\d{3}-\\d{4}$";
  </code></pre>
  
  <p>This would look for telephone numbers in the following format - 123-456-7890</p>
  
  <p>My question being, I now want to write a RegEx that looks for key <strong>words</strong> as apposed to numbers.</p>
  
  <p>E.g. If I read in a data file I would want it to find key words 'White' and 'Car'.</p>
  
  <p>And then put them into the results file.</p>
  
  <p>Is there a method of doing this?</p>