answered 2023-01-28 07:00:00 +0000
The regular expression to eliminate the characters \n and \t would be:
/[\t\n]/g
This will match any occurrence of '\t' or '\n' in a string and replace it with an empty string, effectively eliminating the characters.