JSFiddle - React, Tailwind, and code Playground

by Elvin Asadov

HTML

saygac<input type="text" id="tt">
<br>
reqemler <input type="text" id="numbers">
<br>
herfler <input type="text" id="alphas">
<br>

<input type="button" id="run" value="Run">

JavaScript

$(document).ready(function() {  
    var str = "12A.,+=-\a3b456Яр/";    
    $('#numbers').val(str.replace(/[A-Za-zА-Яа-я\\./,+=-\\-\$-]+/g, ""));
    $('#alphas').val(str.replace(/[0-9]+/g, ''));

});