title: Remove markdown code block from python string
body: <p>I'm trying to remove markdown code blocks from the following string:</p>
  <pre><code>Problem with encoding a very large BigInteger or BigDecimal without fraction
  
  We have an issue to encode a very large BigDecimal. For example, when I tried to encode _7.533938258014959827307132527342E+545_ I got the following error:
  
  ``` java
  Error com.n1analytics.paillier.EncodeException: Input value cannot be encoded.
  at com.n1analytics.paillier.StandardEncodingScheme.encode(StandardEncodingScheme.java:115)
  at com.n1analytics.paillier.StandardEncodingScheme.encode(StandardEncodingScheme.java:239)
  ...
  ```
  
  The reason why I got the error is as follows:
  </code></pre>
  <p>I've tried:</p>
  <pre class="lang-py prettyprint-override"><code>txt = re.sub('(```[a-z]*\n[\s\S]*?\n```)', '', txt) # https://regex101.com/r/aA5bI3/3
  txt = re.sub('(```.+?```)', '', txt)  # https://regex101.com/r/aA5bI3/3
  </code></pre>
  <p>Even though I saw some of these regex at <a href="https://coderwall.com/p/r6b4xg/regex-to-match-github-s-markdown-code-blocks" rel="nofollow noreferrer">https://coderwall.com/p/r6b4xg/regex-to-match-github-s-markdown-code-blocks</a> and <a href="https://regex101.com/r/aA5bI3/3" rel="nofollow noreferrer">https://regex101.com/r/aA5bI3/3</a>, I had no success</p>