added support for \r([regex])