Finding words in phrases using regular expression
<p>I wanna use regular expression to find phrases that contains 
1 - One of the N words (any)
2 - All the N words (all )</p>

<pre><code>&gt;&gt;&gt; import re
&gt;&gt;&gt; reg = re.compile(r'.country.|.place')
&gt;&gt;&gt; phrases = ["This is an place", "France is a European country, and a wonderful place to visit", "Paris is a place, it s the capital of the country.side"]

&gt;&gt;&gt; for phrase in phrases:
...     found = re.findall(reg,phrase)
...     print found
... 
</code></pre>

<p>Result: </p>

<pre><code>[' place']
[' country,', ' place']
[' place', ' country.']
</code></pre>

<p>It seems that I am messing around, I need to specify that I need to find a word, not just a part of word in both cases. </p>

<p>Can anyone help by pointing to the issue ?</p>