Fixes: #2705 csv import should be able of using template uid
Fixes: #2711 Fixed errors in regexp