Category - Regular Expressions
Results 81 - 100 of 103
02 Jan 2018 02 Jan 2018 0 Comments  58253 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Regular Expression (Regex) to allow only Numbers (Digits) and Space character in JavaScript and jQuery.
02 Jan 2018 02 Jan 2018 1 Comments  73844 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Regular Expression (Regex) to allow only Numbers (Digits) and Special characters in JavaScript and jQuery.
19 Apr 2017 19 Apr 2017 0 Comments  61745 Views
Here Mudassar Ahmed Khan has explained with an example, how to create HTML Fileupload element (<input type = “file” />) using Html Helper and Model in ASP.Net MVC Razor.

By default, there is no Html Helper method for creating HTML Fileupload element (<input type = “file” />) in ASP.Net MVC Razor and hence Html.TextBoxFor function is used and the type Attribute is set to value File.
18 Apr 2017 18 Apr 2017 0 Comments  61214 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Client Side validation of HTML Fileupload element (<input type = “file” />) using Data Annotations in Model class and jQuery in ASP.Net MVC Razor.

HTML Fileupload element validation will allow upload of only certain files by filtering them using their extensions. This filtering of files will be done using the RegularExpression Data Annotation attribute in Model class.
02 Dec 2016 02 Dec 2016 0 Comments  46754 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the RegularExpression Data Annotation in ASP.Net MVC Razor.
The RegularExpression Data Annotation can be applied to Model Properties and used for enforcing Regular Expression (Regex) validations in ASP.Net MVC Razor.
02 Dec 2016 17 Sep 2022 0 Comments  75895 Views
Here Mudassar Khan has explained with an example, how to perform Mobile Number (Cellphone Number) TextBox validation i.e. exact Ten Numbers (Digits) validation on Client Side using Data Annotation in ASP.Net MVC Razor.

The Mobile Phone Number (Cellphone Number) validation will be performed using Regular Expression (Regex).
02 Dec 2016 17 Sep 2022 1 Comments  66414 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Decimal TextBox validation i.e. Decimal Number with maximum up to two decimal places validation on Client Side using Data Annotation in ASP.Net MVC Razor.

The Decimal TextBox validation i.e. Decimal Number with maximum up to two decimal places validation will be performed using Regular Expression (Regex).
30 Nov 2016 30 Nov 2016 0 Comments  53675 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform AlphaNumeric TextBox Validation i.e. allow only Alphabet and Number characters validation on Client Side using Data Annotations and jQuery in ASP.Net MVC Razor.
The Client Side AlphaNumeric TextBox Validation i.e. allow only Upper Case and Lower Case Alphabet and Number (Digits) characters validation will be performed using Model class and Data Annotation attributes.
15 Jul 2016 15 Jul 2016 0 Comments  7042 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement multiple TextBox Email validation in JavaScript.
15 Jul 2016 15 Jul 2016 0 Comments  16175 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate multiple Email Addresses using JavaScript and Regular Expressions.
07 Aug 2015 07 Aug 2015 0 Comments  16945 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Password complexity validation in JavaScript and jQuery.
The Password complexity validation in JavaScript and jQuery will be performed using Regular Expressions (Regex).
04 Jun 2015 04 Jun 2015 7 Comments  64289 Views
Here Mudassar Ahmed Khan has explained how to implement Password Strength validation for Password TextBox with examples in JavaScript and jQuery.
The Password strength validation in JavaScript and jQuery will be performed using Regular Expressions (Regex).
17 May 2015 17 May 2015 0 Comments  18460 Views
Here Mudassar Ahmed Khan has explained how to get and extract Inner Text from HTML HyperLink (Anchor tags) using Regular Expression (Regex).
15 Mar 2015 15 Mar 2015 6 Comments  97210 Views
Here Mudassar Ahmed Khan has explained how to detect mobile phone browser (mobile device) in ASP.Net using C# and VB.Net.
With the help of Regular Expressions, one can easily detect and find whether the User is using a Desktop browser or mobile phone browser (mobile device) in ASP.Net.
15 Jul 2014 15 Jul 2014 0 Comments  154370 Views
Here Mudassar Ahmed Khan has shared the following Regular Expressions (Regex) for validating decimal numbers in TextBox.

1. Regular Expressions (Regex) to allow both decimals as wells as integers numbers.
2. Regular Expressions (Regex) to allow any decimal number starting from 1 upto N decimal places.
14 Jul 2014 14 Jul 2014 0 Comments  36989 Views
Here Mudassar Ahmed Khan has shared the following Regular Expressions (Regex) for validating decimal numbers in TextBox.

1. Regular Expressions (Regex) to match number with decimal precision of exact 1 decimal place.
2. Regular Expressions (Regex) to match number with decimal precision of exact 2 decimal places.
3. Regular Expressions (Regex) to match number with decimal precision of upto 2 decimal places.
22 Jun 2014 22 Jun 2014 2 Comments  341823 Views
Here Mudassar Ahmed Khan has explained how to use Regular Expression (Regex) to accept/allow only Alphabets and Space in TextBox in ASP.Net using:-

1. RegularExpression Validator.
2. JavaScript.
3. jQuery.
04 Jun 2013 04 Jun 2013 8 Comments  128566 Views
Here Mudassar Ahmed Khan has give some examples of combination of Regular Expressions (Regex) along with ASP.Net RegularExpression Validators, so that users can implement different sorts of Password Policy in their websites.
For example:-

- Minimum 8 characters at least 1 Alphabet and 1 Number
- Minimum 8 characters at least 1 Alphabet, 1 Number and 1 Special Character
- Minimum 8 characters at least 1 Uppercase Alphabet, 1 Lowercase Alphabet and 1 Number
- Minimum 8 characters at least 1 Uppercase Alphabet, 1 Lowercase Alphabet, 1 Number and 1 Special Character
- Minimum 8 and Maximum 10 characters at least 1 Uppercase Alphabet, 1 Lowercase Alphabet, 1 Number and 1 Special Character
11 Aug 2012 11 Aug 2012 3 Comments  186147 Views
Here Mudassar Mudassar Ahmed Khan has explaind how to validate email address format client side in jQuery using Regular Expressions. This script can be used in ASP.Net,PHP and also in simple HTML page.
10 Jun 2012 10 Jun 2012 7 Comments  319581 Views
Here Mudassar Ahmed Khan has explained the following three types of character length or count validations for ASP.Net TextBox using Regular Expression Validators.
1. Maximum character length Validation
2. Minimum character length Validation
3. Minimum and Maximum character length Validation
Results 81 - 100 of 103