title: Python re.search regex using or condition
body: <p>Hi Friends I'm trying to include "or |" condition in search pattern using re.search. Can someone help me how to achieve or condition as I'm not getting match.
  Below code works </p>
  
  <pre><code>&gt;&gt;&gt; pattern = re.escape('apple.fruit[0]')
  &gt;&gt;&gt; sig = 'apple.fruit[0]'
  &gt;&gt;&gt; if re.search(pattern, sig):
  ...    print("matched")
  ...
  matched 
  &gt;&gt;&gt; pattern = re.escape('apple.fruit[0] or vegi[0]')
  &gt;&gt;&gt; if re.search(pattern, sig):
  ...    print("matched")
  ...
  &gt;&gt;&gt;
  </code></pre>
  
  <p>I want to match above string  "apple." followed by fruit[0] or vegi[0]</p>