JSFiddle - React, Tailwind, and code Playground
CSS
.ex-backgroundimage {
position: relative;
}
.ex-backgroundimage > .ex-backgroundimage-image {
background-repeat: no-repeat;
background-position: center center;
opacity: 0.5;
top: 0;
left: 0;
bottom: 0;
right: 0;
position: absolute;
z-index: -1;
}
JavaScript
var string = "c92f19fe-5c7d-4d60-e805-c8e3038e25d9";
var result = string.search(/^[a-f,0-9]{8}-[a-f,0-9]{4}-[a-f,0-9]{4}-[a-f,0-9]{4}-[a-f,0-9]{12}/);
console.log("test-");