translate: use regexFactory