JSFiddle - React, Tailwind, and code Playground
HTML
<div id="text">
Welcome to (MotherLand)
</div>
JavaScript
function myText(){
var inputString = document.getElementById("text").innerHTML;
var result = inputString.match(/(\()/);
alert(result[1]);
}
myText();