JSFiddle - React, Tailwind, and code Playground

by ajdepoti

HTML

<html>
    <head>
        <script type="text/javascript">
            var src = "img/01.jpg";
            var m = parseInt(src.match(/\d+/g));
            alert(m);
            n = m+1;
            alert(n);
            src = src.replace(m, n);
            alert(src);

        </script>
    </head>
    <body>
    </body>
</html>