Friday, January 18, 2008

Javascript Text Parsing


var inputText='this is testin\r\ng of the enivonem of NSHOWKAT@1STNA\r\nTIONALMERCHANT.COM \r\nNSHOWKAT@1STNATIONALMERCHANT.COM';

var ans=inputText.replace(/\r\n/g,"");

No comments: