Category - Regular Expressions
Results 6 - 10 of 45
13 Dec 2018 13 Dec 2018 0 Comments  440 Views
Here Mudassar Ahmed Khan has explained a simple tutorial with an example, how to use the ng-pattern-restrict directive in AngularJS.

The ng-pattern-restrict directive is used to restrict the user input by disabling the invalid characters with the help of Regular Expression patterns in AngularJS.
13 Dec 2018 13 Dec 2018 0 Comments  521 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Numeric validation i.e. allow only Numbers (Digits) in TextBox using Regular Expressions in AngularJS.

The Numeric validation will be performed with the help of ngPatternRestrict module which uses Regular Expressions for restricting characters in TextBox in AngularJS.
12 Dec 2018 12 Dec 2018 0 Comments  589 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform AlphaNumeric validation i.e. allow only Alphabets and Numbers in TextBox using Regular Expressions in AngularJS.

The AlphaNumeric validation will be performed with the help of ngPatternRestrict module which uses Regular Expressions for restricting characters in TextBox in AngularJS.
04 Oct 2018 04 Oct 2018 0 Comments  1883 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Date of Birth (Age) Validation using Regular Expressions (Regex) in JavaScript.

There will be two types of Validations:
1. Date format dd/MM/yyyy validation: The Date of Birth (DOB) will be first validated for dd/MM/yyyy format using Regular Expression (Regex).
2. 18+ Minimum Age validation: The difference between the age entered in the TextBox and the Current Date is minimum 18 years.
04 Oct 2018 04 Oct 2018 0 Comments  935 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate Date in dd/MM/yyyy format using Regular Expression (Regex) in JavaScript.

There will be two types of Validations:
1. Date format dd/MM/yyyy validation: The Date of Birth (DOB) will be first validated for dd/MM/yyyy format using Regular Expression (Regex).
2. 18+ Minimum Age validation: The difference between the age entered in the TextBox and the Current Date is minimum 18 years.
Results 6 - 10 of 45