Welcome to the Make community!
You don’t even need a MODULE for this.
You can use the built-in function replace
e.g.:
{{ replace(2.result; "/(?:```.*\s+|\s+```)/g"; emptystring) }}
Proof: https://regex101.com/r/2HEaUn/1
For more information, see the function documentation in the Help Center.
samliew – request private consultation
Join the Make Fans Discord server to chat with other makers!