title: Anchors in Regex
body: <ol>
  <li>In a Python Regex, must ^ or $
  appear just once?</li>
  <li><p>I tried to match two lines with</p>
  
  <pre><code>^(.*\|.*)$^.*$
  </code></pre>
  
  <p>It does not work. How do you match
  several lines?</p></li>
  </ol>
  
  <p>Note: I am not programming in Python, but using Python-style Regex in my editor gedit.</p>
  
  <p>Thanks and regards!</p>