title: Extract string before and string after based on a regex match in python
body: <p>I want to extract strings before and string after a relational operator(>,&lt;,>=,&lt;=,!=,=) in regex using python</p>
  
  <p>input:</p>
  
  <pre><code>Find me products where sales &gt;= 200000 and profit &gt; 20% by country
  </code></pre>
  
  <p>output </p>
  
  <pre><code>[[sales,&gt;=,200000],[profit,&lt;,20%]]
  </code></pre>
  
  <p>I am able to get the string before the operator and the operator using </p>
  
  <pre><code>\w+(?=\s+([&lt;&gt;]=?|[!=]=))
  </code></pre>
  
  <p>How do i get the string after as well in the same list? Any help is much appreciated</p>