js-mentorship-razvan / javascript

Javascript study notes
GNU General Public License v3.0
22 stars 2 forks source link

Remove the noise from the string #568

Closed RazvanBugoi closed 4 years ago

RazvanBugoi commented 4 years ago

https://www.codewars.com/kata/5681cf0be812b41721000034/train/javascript

RazvanBugoi commented 4 years ago
function removeNoise(str){
    return str.replace(/[%\$&\/#·@\|º\\ª]/g, '');
}