Support regex in some operations.