$('#AXInput').on('input keyup', function() { this.value = this.value.replace(/\-{2,}/, '-').replace(/[^\d-]|\b\-/, '') })