JSFiddle - React, Tailwind, and code Playground
by davecoulter
HTML
<p>left:-100px;</p>
JavaScript
$(function(){
var stuff = $("p").text();
var regex = /[-\d\w]+(?=;)/;
var test = regex.exec(stuff);
alert(test[0]);
});