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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
([2-9JQKA]|10)([\u2660\u2663\u2665\u2666])
Description
Matches each card in the deck of standard playing cards, not including the Jokers
Matches
A?A?A?A? | 2?3?4?5? | 10?J?Q?K?
Non-Matches
1? | 11? | R?
Author Rating: Not yet rated. Michael Ash
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: RE: 99
Name: Michael Ash
Date: 4/21/2005 10:08:37 AM
Comment:
This does not match 99. You can use the test page to verify that.


Title: 99
Name: Tido
Date: 4/21/2005 6:33:05 AM
Comment:
The expression matches to 99c! how do you get it really to match only 2-9?


Title: Spades, Clubs, hearts and diamond Suits
Name: Michael Ash
Date: 5/27/2004 6:01:16 PM
Comment:
The website isn't displaying the suit characters but the regex is matching against the set of black suited characters. You can change ([\u2660\u2663\u2665\u2666]) to ([SCHD]) and look for letters instead.


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