change fn to regexp convert notation