Poker Formatter

Format poker cards for forum games and whatever without reaching for Unicode input methods.

The regex employed is essentially /\b([A2-9TJQK]|10)([CDHS])\b/g. You have to type in uppercase (otherwise even “as” would be filtered).