You need to make the regex case-insensitive for IE. I am surprised that your code works in any browser as / must be escaped with \.
If you are 20 and you are not a socialist, then you have no heart. If you are 40 and you are still a socialist, then you have no brain.
warningMessageReplace = warningMessage.replace(/<\/br>/gi,'\r\n');
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Last edited by Philip M; 02-13-2013 at 05:45 PM..