В регулярном выражении, основанном на java, вы можете использовать [\s\S]
Вот пример из https://github.com/gialib/ex_mock readme:
defmodule MyTest do
use ExUnit.Case, async: false
import ExMock
test "test_name" do
with_mock HTTPotion, [get: fn(_url) -> "<html></html>" end] do
HTTPotion.get("http://example.com")
# Tests that make the expected call
assert called HTTPotion.get("http://example.com")
end
end
end