<p>Hi</p>
<p>I am looking for method enables advanced text string search. Method string.find() or re module seems no  supporting what I am looking for. The idea is as follows:</p>
<p>Text =&quot;FDA meeting was successful. New drug is approved for whole sale distribution!&quot; </p>
<p>I would like to scan the text using AND and OR operators and gets -1 or other value if the searching elements haven&#39;t found in the text. </p>
<div>Example 01:<br>search criteria:  &quot;FDA&quot; AND ( &quot;approve*&quot; OR &quot;supported&quot;)<br>The catch is that in Text variable FDA and approve words  are not one after another (other words are in between).<br>
</div>
<div>Example 02:<br>search criteria: &quot;Ben&quot;</div>
<div>The catch is that code sould find only exact Ben words not also words which that has firts three letters Ben such as Benquick, Benseek etc.. Only Ben is the right word we are looking for.</div>
<p>I would really appreciated your advice - code sample / links how above can be achieved! if possible I would appreciated solution achieved with free of charge module.</p>
<p>Cheers,  Alex </p>
<div>PS:<br>A few moths ago I have discovered Python. I am amazed what all can be done with it. Really cool programming language..</div>