It works for me. Are you on Windows? Perhaps you need to prepend (*ANYCRLF) to the regex then, i.e.
function remove_docstrings(str)
return replace(str, r"(*ANYCRLF)^\"\"\"$.*?^\"\"\"$"ms => "")
end
It works for me. Are you on Windows? Perhaps you need to prepend (*ANYCRLF) to the regex then, i.e.
function remove_docstrings(str)
return replace(str, r"(*ANYCRLF)^\"\"\"$.*?^\"\"\"$"ms => "")
end