anchor.diff:      ?assertEqual({match,[<<"ell">>,<<"o">>,<<"h">>]},
                    re2:match(<<"hello">>, <<"(?P<B>h)(?P<A>.*)(o)">>,
                              [{capture,['A',3,"B"],binary}])),
  +
  +    ?assertEqual({match,[{1,3},{4,1},{0,1}]},
  +                 re2:match(<<"hello">>, <<"(?P<B>h)(?P<A>.*)(o)">>,
  +                           [{capture,['A',3,"B"],index}])),
   
       ?assertEqual({match,[{0,5}]}, re2:match(<<"hello">>,
                                               <<"(?P<A>h)(?P<B>.*)o">>,
  
positive.code: 
  compile_test() ->
      ?assertMatch({ok, _}, re2:compile(".*")),
      ?assertMatch({error, _}, re2:compile(".*", [{max_mem, 4}])).
  
  replace_test() ->
      ?assertEqual(<<"heLo worLd">>,
  
negative.code:     {ok, RegExA} = re2:compile(<<"h.*o">>),
  
      ?assertMatch({'EXIT',{badarg,_}},
                   (catch re2:match("hello", RegExA, [ok]))),
      ?assertMatch({'EXIT',{badarg,_}},
                   (catch re2:match("hello", "h.*o", [ok]))),
  