RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 3
Title Test Details Pattern Title
Expression
^((67\d{2})|(4\d{3})|(5[1-5]\d{2})|(6011))-?\s?\d{4}-?\s?\d{4}-?\s?\d{4}|3[4,7]\d{13}$
Description
Credit Card Matching - Matches Switch, Solo, Visa, MasterCard and Discover. Matches length and valid prefix. Accepts input optional spaces and dashes between number groups
Matches
5154-1234-1234-1342 | 4444333322221111 | 6767 1111 1111 1111
Non-Matches
1234123412341234 | 1111111 | 987654321
Author Rating: The rating for this expression. hazel ryan
Title Test Details Pattern Title
Expression
^((67\d{2})|(4\d{3})|(5[1-5]\d{2})|(6011))(-?\s?\d{4}){3}|(3[4,7])\d{2}-?\s?\d{6}-?\s?\d{5}$
Description
Credit Card Validation. Matches Switch/Solo, Visa, MasterCard and Discover in 4-4-4-4/4 4 4 4/4444 format and Amex in 4-6-5/4 6 5/465 format. Includes checks for prefixes, (67 for switch/solo, 4 for visa, 51-55 for MasterCard, 37/34 for Amex and 6011 for Discover. Matches all major UK debit and credit cards with spaces dashes or as a continous number
Matches
4234 1234 1234 1234 | 5434123412341234 | 3712 123456 12345
Non-Matches
1234123412341234 | 1111111 | 987654321
Author Rating: The rating for this expression. hazel ryan
Title Test Details Pattern Title
Expression
^[a-z\.]*\s?([a-z\-\']+\s)+[a-z\-\']+$
Description
Matches Names - written for credit card matching. Optional Prefix that can contain a fullstop, one or more forenames that can contain hyphens and apostrophes followed by a surname that can contain hyphens and apostrophes
Matches
Miss H Ryan | Miss Ryan | Miss Hazel Joanne Ryan
Non-Matches
Hazel | Hazel Ryan
Author Rating: The rating for this expression. hazel ryan
   Displaying page 1 of 1 pages; Items 1 to 3

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials