must escape backslash twice
document origin of replace() and line() resource