Reference for regex syntax and base R and stringr functions for detecting, locating, extracting, and replacing string patterns