Please enable JavaScript
For Salesforce Lightning Web Component lighning-input Validation, pattern and message-when-pattern-mismatch attributes can be used. Blog Post: https://www.infallibletechie.com/2020/10/how-to-restrict-users-to-avoid-entering.html