So i have a string which is "BALCONI \n\n\t\t\t\t10-pack MixMax chocolade cakejes" and i am trying to remove the unnecessary tabs and new lines.
I have tried using .replace(/(\n\t)/g, '') to replace the \n and \t but it doesn't seem to replace anything. I have been using https://regexr.com/ to help try and understand how to replace \n and \t but i am having no luck. Is it because "\n\n\t\t\t\t" is joined with "10-pack" that i am unable to remove \n and \t?
Any help would be much appreciated as regular expression is not my strong point.