I want an ng-pattern expression to validate a textbox in AngularJS JavaScript. Contents for this textbox must have at least one Alphabetic character, but may also contain any number of Numeric and/or Special characters.
Examples:
a1234$
It is acceptable (because 'a' is present)123%
It is not acceptableabc
It is acceptable56456a
It is acceptable123$%^abc
It is acceptableUse ng-pattern like this.
<input type="text" ng-model="price" name="price_field" ng-pattern="/.*[a-zA-Z]+.*/" required>