classroom/public/lessons/CertificateTest/js/certification_test.js
//Remove All Special Characters to match strings

Remove All Special Characters to match strings
Remove All Special Characters to match strings
function removeSpecialCharacter(m){
	var meaning = m ; 
	meaning = meaning.replace(/[!-.,;Â¡Â¿?'"ã€Œã€�â€™]/g, '');
	meaning = meaning.replace(/[â€˜â€™â€œâ€�''""â€™'ã€Œ ã€� â€’ â€“ â€” â€• â€� -]/g, '');
	meaning = meaning.replace(/\//g, '');
	meaning = meaning.replace(/[Ã¡Ä�ÇŽÃ Ä€Ã�Ç�Ã€]/g,'a');
	meaning = meaning.replace(/[Ã©Ä“Ä›Ã¨Ä’Ã‰ÄšÃˆ]/g,'e');
	meaning = meaning.replace(/[Ã­Ã­Ä«Ã­Ç�Ã¬ÄªÃ�Ç�ÃŒ]/g,'i');
	meaning = meaning.replace(/[Ã³Å�Ã³Ç’Ã²ÅŒÃ“Ç‘Ã’]/g,'o');
	meaning = meaning.replace(/[ÃºÃ¼Å«ÃºÇ”Ã¹Ç–Ç˜ÇšÇœÅªÃšÇ“Ã™Ç•Ç—Ç™Ãœ]/g,'u');
	meaning = meaning.replace(/[Ã±Ã±Ã±Ã±]/g,'n');
	meaning = meaning.replace(/[Ã¼]/g,'u');
	meaning = meaning.replace(/^\s+|\s+$/g,'');
	return meaning;
}
function removeSpecialCharacter ( m ) { var meaning = m ; meaning = meaning . replace ( / [!-.,;Â¡Â¿?'"ã€Œã€�â€™]/g, '');
 meaning = meaning . replace ( / [â€˜â€™â€œâ€�''""â€™'ã€Œ ã€� â€’ â€“ â€” â€• â€� -]/g, '');
 meaning = meaning . replace ( / \/ / g , '' ) ; meaning = meaning . replace ( / [Ã¡Ä�ÇŽÃ Ä€Ã�Ç�Ã€]/g,'a');
 meaning = meaning . replace ( / [Ã©Ä“Ä›Ã¨Ä’Ã‰ÄšÃˆ]/g,'e');
 meaning = meaning . replace ( / [Ã­Ã­Ä«Ã­Ç�Ã¬ÄªÃ�Ç�ÃŒ]/g,'i');
 meaning = meaning . replace ( / [Ã³Å�Ã³Ç’Ã²ÅŒÃ“Ç‘Ã’]/g,'o');
 meaning = meaning . replace ( / [ÃºÃ¼Å«ÃºÇ”Ã¹Ç–Ç˜ÇšÇœÅªÃšÇ“Ã™Ç•Ç—Ç™Ãœ]/g,'u');
 meaning = meaning . replace ( / [Ã±Ã±Ã±Ã±]/g,'n'); meaning = meaning . replace ( / [Ã¼]/g , ' u '); meaning = meaning . replace ( / ^\s+|\s+$ / g , '' ) ; return meaning ; }
Remove All Special Characters to match strings
Remove All Special Characters to match strings