Added support for already enclosed regex