JSFiddle - React, Tailwind, and code Playground

JavaScript

alert("data-123data-".replace('data-',''));