Description
Elixir 1.18.3, Erlang/OTP 27.3.3
IO.inspect Regex.split ~r/b\K/, "ababab"
IO.inspect :re.split "ababab", "b\\K"
returns
["ab", "ab", "", "ab", "", ""]
["ab", "ab", "ab", ""]
I think Regex.split
should return the same result as :re.split
. Non-trailing \K
s and lookbehinds seem to work correctly, this is the only case.