JSFiddle - React, Tailwind, and code Playground

by joshmoto

JavaScript

console.log(/^[A-Za-z]{2}[ ]{0,1}[0-9]{2}[ ]{0,1}[a-zA-Z]{3}$/.test('GN02 FGF'));