<script type="text/javascript"> </script> <textarea name="start" cols="50" rows="10"></textarea> <textarea name="out" cols="50" rows="10"></textarea>
str = "123 / asdf / 5555"; alert(str.replace(/ \//g,","));
var s = document.getElementsByName('start')[0],o = document.getElementsByName('out')[0]; s.onkeyup = s.onkeypress = function () { var text = this.value.replace(/ \//g,",") o.value = text }