Regex replacing

- Renamed `replaceR` to `replace` as qualified importing seems preferrable to type-specific naming to me.
- Add `replace'` which uses a function `full match -> [match groups] -> replacement` for each match found.