Regular Expression Backreferences provide us a method to match a previously captured pattern a second time.
what if var str = `<b>Bold<i>italics</i></b>`;
var str = `<b>Bold<i>italics</i></b>`;