'regex for accepting a-z letters and composite keys in angular

i like to limit input to accept only [a-z] letters and also composite keys like ctrl+A , ctrl+C , etc to handle natural behavior of html input . how can i do it?



Solution 1:[1]

You can use the pattern attribute

<input type="text" pattern="[A-Za-z]">

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 abney317