Extends visual-regexp to support other regexp engines