I have a text field that needs to remain only text or decimal. Here is the code that I\'m currently using to replace everything except numbers and a decimal point. Issue is,
Check the link Regular Expression Demo
use the below reg exp
[a-z] + [^0-9\s.]+|.(?!\d)