Category - Regular Expressions
Results 21 - 40 of 66
22 Jan 2019 22 Jan 2019 0 Comments  33949 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate Email using JavaScript and Regular Expression (Regex) in ASP.Net MVC Razor.

When the Submit Button is clicked, the Email Address in the TextBox will be validated using JavaScript and Regular Expression (Regex) and if the Email Address is invalid, the error message will be displayed next to the TextBox in ASP.Net MVC Razor.
28 Dec 2018 28 Dec 2018 1 Comments  38452 Views
Here Mudassar Ahmed Khan has explained with an example, how to check if String contains only Alphabets (Letters) and Numbers (Digits) using JavaScript.

This article will illustrate how to use Regular Expression which allows Alphabets (Letters) and Numbers (Digits) i.e. AlphaNumeric characters to filter out all unwanted characters using JavaScript.
28 Dec 2018 28 Dec 2018 0 Comments  20331 Views
Here Mudassar Ahmed Khan has explained with an example, how to check if TextBox contains Special Characters in JavaScript.

This article will illustrate how to use Regular Expression which allows Alphabets and Numbers (AlphaNumeric) characters with Space to check whether the value entered in the TextBox contains Special Characters or not.
28 Dec 2018 28 Dec 2018 0 Comments  90421 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Regular Expression (Regex) to exclude (not allow) Special Characters in JavaScript.

This article will illustrate how to use Regular Expression which allows Alphabets and Numbers (AlphaNumeric) characters with Space to exclude (not allow) all Special Characters.
28 Dec 2018 28 Dec 2018 0 Comments  20799 Views
Here Mudassar Ahmed Khan has explained with an example, how to check Special Characters using Regular Expression (Regex) in JavaScript.

This article will illustrate how to use Regular Expression which allows Alphabets and Numbers (AlphaNumeric) characters with Space to filter out all Special Characters.
28 Dec 2018 28 Dec 2018 0 Comments  60909 Views
Here Mudassar Ahmed Khan has explained with an example, how to check whether String contains Special Characters using JavaScript.

This article will illustrate how to use Regular Expression which allows Alphabets and Numbers (AlphaNumeric) characters with Space to filter out all Special Characters and verify whether String contains Special Characters.
13 Dec 2018 13 Dec 2018 0 Comments  11150 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 1 Comments  21385 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  22248 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  86222 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  22492 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.
01 Aug 2018 01 Aug 2018 0 Comments  65526 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate Email Address using Regular Expression Validator in ASP.Net.
06 Jul 2018 06 Jul 2018 0 Comments  11443 Views
Here Mudassar Ahmed Khan has explained with an example, why Request.Browser.IsMobileDevice property does not work in ASP.Net.

ASP.Net does have in-built mobile phone browser detection capabilities and you can check whether user is using a Mobile phone browser or Desktop browser using the Request.Browser.IsMobileDevice property.

But with time, new Operating Systems and Mobile devices are being launched, thus since the information for is not present the Mobile Devices are not being detected.
06 Jul 2018 06 Jul 2018 0 Comments  20689 Views
Here Mudassar Ahmed Khan has explained with an example, how to detect mobile phone browser (mobile device) in ASP.Net MVC Razor.

With the help of Regular Expressions (Regex), one can easily detect and find whether the User is using a Desktop browser or mobile phone browser (mobile device) in ASP.Net MVC Razor.
15 Jun 2018 15 Jun 2018 1 Comments  32716 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement dd/MM/yyyy Date format validation for TextBox in ASP.Net MVC Razor.

The RegularExpression Data Annotation will be used along with Regular Expression (Regex) for enforcing dd/MM/yyyy Date format validation for TextBox in ASP.Net MVC Razor.
14 Jun 2018 14 Jun 2018 1 Comments  46109 Views
Here Mudassar Ahmed Khan has explained with an example, how to insert Date in dd/MM/yyyy format in SQL Server Database Table using ASP.Net with C# and VB.Net.

This article will illustrate how to insert Date in dd/MM/yyyy format in Database Table using Stored Procedures and the SQL Server DATEFORMAT command in ASP.Net.
12 Jun 2018 12 Jun 2018 0 Comments  6282 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform simple Email validation using JavaScript.

The value of the Email TextBox will be validated with the help of Regular Expressions in JavaScript.
12 Jun 2018 12 Jun 2018 1 Comments  72439 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Date format validation (dd/MM/yyyy) using Regular Expression in C# and VB.Net.

The User will enter Date in TextBox and when the Button is clicked, the Date will be tested against the Regular Expression for dd/MM/yyyy format and if invalid, a Message Box will be displayed.
12 Jun 2018 12 Jun 2018 0 Comments  56203 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Email Validation using Regular Expression in C# and VB.Net.

The User will enter Email Address in TextBox and when the Button is clicked, the Email Address will be tested against the Regular Expression and if invalid, a Message Box will be displayed.
09 Jan 2018 09 Jan 2018 0 Comments  17943 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Regular Expression (Regex) to accept/allow Alphanumeric characters i.e. Alphabets (Upper and Lower case) and Numbers (Digits) and Space in TextBox in ASP.Net using:-

1. RegularExpression Validator.
2. JavaScript.
3. jQuery.
Results 21 - 40 of 66