JSFiddle - React, Tailwind, and code Playground

by fguillen

JavaScript

"XXX1XXX".replace( /XXX(\d+)XXX/, "pepe" + $1 + "pepe" );