fixes for R 2.14 and regex operator