Move regexes guard up for better error messages, closes #8538
Move regexes guard up for better error messages, closes #8538

lexmag/elixir,kelvinst/elixir,joshprice/elixir,pedrosnk/elixir,ggcampinho/elixir,lexmag/elixir,kelvinst/elixir,elixir-lang/elixir,kimshrier/elixir,ggcampinho/elixir,pedrosnk/elixir,kimshrier/elixir,michalmuskala/elixir