title: determining whether the given sentence contain the given word or not c++
body: <p>I need to determine whether a given word is found in an another string or not in c++.</p>
  
  <p>my function prototype will be like <code>bool check(string sentence, string word);</code></p>
  
  <p>and "sentence" could be like : <code>word.someWord AND/OR/XOR word2.someWord *AND/OR/XOR* word3.someWord</code> and goes like that.</p>
  
  <p>For a real example: <em>unlock_the_door.value=1 AND turn_of_car.checkSum=1</em></p>
  
  <p>Now, In this example If I assign word to lock, my check function should be return false but If I give it to "unlock" it should return true.</p>
  
  <p>To do that I've used to .find() function but as you all know it was wrong because it returned me to true even if I give lock as an word parameter since "unlock" contains "lock"</p>
  
  <p>I guess I need to use regular expression but I dont know how to do that. Is there anyone to help me ? Thanks in advance. </p>