Hackerrank – Valid PAN Format

Problem Statement
A description of the problem can be found on Hackerrank.

Solution
Regex:
[A-Z]{5}\d{4}[A-Z]

I created solution in:

All solutions are also available on my GitHub.

Ruby

Java

JavaScript

Scala