Provides regular expressions for Elixir.| hexdocs.pm
I am assuming this is a Windows thing. Regex seems to treat \r\n as 2 characters but String treats them as one trying to strip whitespace off the front of a string iex(17)> regex = ~r/^\s+/ ~r/^\s+/ iex(18)> junk = "\r\n\r\nabc" "\r\n\r\nabc" iex(19)> Regex.run(regex, junk, return: :index) [{0, 4}] iex(20)> String.slice(junk, 4..-1//1) "c" iex(21)> String.graphemes(juk) ["\r\n", "\r\n", "a", "b", "c"] iex(22)> Am I reading this correctly (absolute elixir noob). What the correct way to fix it...| Elixir Programming Language Forum
assert(assertion)| hexdocs.pm