I have two regular expression. How can I convert them into one:
str = str.replace(/(\s\(\d+\)|exception\s*\:*)/gi, "<br /><br />$1");
str = str.replace(/(exception\s+No\.\s*\d\:)/gi,"<br /><br />$1");
I want to convert them into one regular expression. How can i do it?
thanks in advance