JSFiddle - React, Tailwind, and code Playground

by jfriend00

JavaScript

var defaultVal = "<b>Item1</b>: This is item 1 description.";
var bonly = defaultVal.match(/<b>(.*?)<\/b>/);
alert(bonly[1]);