title: How to make re.search look for multiple patterns?
body: <p>Hello currently reading a book about regular expressions and i am stuck at this Task.</p>
  
  <p>c) Match strings if it doesn’t contain white-space or the string error between the strings qty and price</p>
  
  <pre><code>str1 = '23,qty,price,42'
  str2 = 'qty price,oh'
  str3 = '3.14,qty,6,errors,9,price,3'
  str4 = 'qty-6,apple-56,price-234
  </code></pre>
  
  <p>I figured out how to check the strings for not containing white space and not having error in between qty and price but i can´t combine both.</p>
  
  <pre><code>bool(re.search(r"^[^ ]+$",str1))
  bool(re.search(r"(qty((?!error).)*price)",str1))
  </code></pre>
  
  <p>My question is how would <code>re.search</code> have to look like if i want to check for both requirements?</p>