new string[64]; for(new i=0;i++;i<sizeof(string)) { if(string[i]=='\' && string[i+1]=='n') { //your function } }