   end
 
   @doc """
-  Returns the underlying re_pattern in the regular expression.
+  Returns the underlying `re_pattern` in the regular expression.
   """
   def re_pattern(regex(re_pattern: compiled)) do
     compiled

      captures = if groups do
        Enum.sort(groups)
      else
        raise "Regex was not compiled with g"
      end
      options  = Keyword.put(options, :capture, captures)
    end


  @doc """
  Returns the given captures as a list of tuples.
  Requires the regex to be compiled with the groups option.

  ## Examples

