Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.