JSFiddle - React, Tailwind, and code Playground by fguillen May 14, 2012 JavaScript "XXX1XXX".replace( /XXX(\d+)XXX/, "pepe" + $1 + "pepe" );