JSFiddle - React, Tailwind, and code Playground

by tuga

JavaScript

var a = "a1b2c3";
a = a.replace(/^.*?([.,\d]+).*?$/, "$1");
alert(a);