Regular expression to search for plural or singular of specific python
<p>I want to use a regular expression to search for dog or dogs in a certain sentence. Here is what I have but its not working. I need it to search for the specific word, not just a plural or singular of all words. </p>

<pre><code>x = re.findall('(?&lt;=\|)dog[s]?(?=\|)', txt)
</code></pre>