make 'regExpPath' to do a true RegExp replace