I'm trying to remove markdown code blocks from the following string:
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:
I've tried:
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
Even though I saw some of these regex at https://coderwall.com/p/r6b4xg/regex-to-match-github-s-markdown-code-blocks and https://regex101.com/r/aA5bI3/3, I had no success