Find and Replace using Regex To Modify Input Value – Need help

I want to replace the original value with the modified value. So if they entered,

FE53#$

I would end up displaying

#$

I hope to display an alert as an error message in between that says something like “Special Characters only” and when they exit out of the alert, then the displayed value is changed.

I have an alert that displays a message. Next issue would be to handle the queuing of the message first and then the display of the modified value so that one doesn’t happen until after the first (alert) is handled.

Read more here: Source link