Add a switch to decide which regex engine should be used