title: Regex expression for multiline comment in Python
body: <p>I want to write a regex expression for multiline comment in Python. I was trying to modify this expression for multiline comment in Java, but I wasn't able to do it, because in Python multiline comment works in a different way.</p>
  
  <p>Regex expression for Java:</p>
  
  <pre><code>(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|(//.*)
  </code></pre>
  
  <p>An example of multiline comment in Python:</p>
  
  <pre><code>''' comment comment
  comment comment
  '''
  </code></pre>
  
  <p>or</p>
  
  <pre><code>""" comment comment
  comment comment
  """
  </code></pre>