fix target regex for R