Modified pattern matching logic to check several format rules.