using System.Globalization;
using System.Collections.Generic;
using System.Text.RegularExpressions;
public static void Main()
var regEx = new Regex("([a-zA-Z]{3}.) (\\d\\d\\d\\d)");
var aprilWithDot = "Apr. 2022";
var april = "April 2022";
var mayWithDot = "May. 2022";
var juneWithDot = "Jun. 2022";
Console.WriteLine( $" {aprilWithDot} - match > {regEx.IsMatch(aprilWithDot)}" );
Console.WriteLine( $" {april} - match > {regEx.IsMatch(april)}" );
Console.WriteLine( $" {mayWithDot} - match > {regEx.IsMatch(mayWithDot)}" );
Console.WriteLine( $" {may} - match > {regEx.IsMatch(may)}" );
Console.WriteLine( $" {juneWithDot} - match > {regEx.IsMatch(juneWithDot)}" );
Console.WriteLine( $" {june} - match > {regEx.IsMatch(june)}" );