add possibility to use regex-based replace