JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <head>
        <title>Test</title>
    </head>
    <body>
        <div id="div1" class="div">hello div1</div>
        <div id="div2" class="div">hello div2</div>
    </body>
</html>

CSS

body {
 font-family: "Inconsolata","Monaco","Consolas","Andale Mono","Bitstream Vera Sans Mono","Courier New",Courier,monospace;
  font-size:12px;
  line-height:15px;  
}

JavaScript

$(document).ready(function() {
    
    
    
    
   
    //var txt = "{adsf}{asdfasf}";
    //var arr = txt.match("/\{.*?\}/g");
    
    var str="PRB100032 DFCT1003; PRB103993"; 
    var arr=str.match([Pp][Rr][Bb][0-9]{5,9}.*);
   
    for (var i = 0; i < arr.length; i++) {
		alert(arr[i]);
	}
   
    
    
});