Five Card Stud Range Notation

Since Five Card Stud has a single hole card, the notation to specify a range is quite simple.

When you set the Options...Allow Hand Ranges and click the Range button for a particular hand, you can specify a percent range of starting hands for that player. Selecting Options...Show Hand Filters will add a text box filter next to each hand with percent ranges shown. Equity calculations will include hands in the given percent range and in the filter range (with dead cards removed, of course). Setting the range to 0–100% will only limit the hands by the filter. You must specify a door card (the leftmost card) when using a filter.

Basic Examples

These tables give some basic examples:

Range of ranks
Filter Matches Number of Hands
Q+ Any queen, king or ace 12
6- Any 2, 3, 4, 5 or 6 20
8-Q Any 8, 9, ten, jack or queen 20
Ranks with a suit
Filter Matches Number of Hands
Jc+ or J+c Jc, Qc, Kc, Ac 4
8-Jh 8h, 9h, Th, Jh 4
[8TQ]d 8d, Td, Qd 3

Complicated ranges can be constructed using a comma separated list. For example, if you want to specify a range that includes any ten or better, or any club, you can write "T+, c".

Understanding How Hands Are Filtered

It's good to know what happens internally when Pokerini filters hands. This will help you quickly specify your hand ranges.

We can represent each card by its rank and suit using 2 characters. Rank characters are: 2, 3, 4, 5, 6, 7, 8, 9, T, J, Q, K and A. Suit characters are: c, d, h, s. So, ace of clubs is "Ac", ace of diamonds is "Ad", nine of hearts is "9h", and two of spades is "2s".

For each of the 52 cards, Pokerini will try to match the rank/suit "Qc", rank "Q" or suit "c". If there is a match, that hand is added to the range. For example, "Q" will match all 4 queens, "c" will match all 13 clubs, "Qc" will match just the queen of clubs.

Specifying several ranks

You can list several ranks separated by commas or between square brackets to specify any of those ranks. Using square brackets makes it easy to append a suit character afterward to limit the range to that suit. Note that Pokerini turns things like "8-Q" into "[89TJQ]" before feeding it to the regular expression matching algorithm.

Matching ranks
Filter Matches Number of Hands
[AKQ] or "A, K, Q" A, K, Q 12
[AKQJT]c Ac, Kc, Qc, Jc, Tc 5
[23] 2, 3 8

Preprocessing of the Filters

Pokerini follows these steps internally to transform the text in the filter box before trying to match hands in Five Card Stud.

  1. Remove all white space.
  2. Replace commas ',' with vertical bars '|'.
  3. Remove consecutive multiple vertical bars or vertical bars at the beginning or end.
  4. Apply a sequence of custom regex replacement rules specified in the file (install_folder)/regex_rules/5 Stud.txt.
  5. Replace rank character ranges in square brackets and curly braces:
    1. Things like "[8-Q]" or "[Q-8]" get replaced by "[89TJQ]"
    2. Things like "[AKT-7]" get replaced by "[AK789T]"
  6. Replace rank ranges:
    1. Things like "9+" get replaced by "[9TJQKA]"
    2. Things like "9c+" or "9+c" get replaced by "[9TJQKA]c"
    3. Things like "9-Q" get replaced by "[9TJQ]"
    4. Things like "9-Qd" get replaced by "[9TJQ]d"
    5. Things like "5-" get replaced by "[2345]"
    6. Things like "5h-" or "5-h" get replaced by "[2345]h"