When I match in other languages, I care about related results like $1 ... $n, $`, $&, $'. I also care about things like case sensitivity and whether the /g flag plays a role. I'd suggest you look at the existing Java or .Net Regexp objects and model your API on theirs. Your existing API exposes only one style of regexp usage and I'm sure your other users are going to care about more than just this one way.