RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Flight Number
Expression
([A-Za-z]{2}|[A-Za-z]\d|\d[A-Za-z])[A-Za-z]{0,1}\d(\d{0,3})[A-Za-z]{0,1}
Description
Matches any valid flight number
Matches
AB123 | 1A123B | B1B1234
Non-Matches
11A123 | 123456B | 123B2
Author Rating: The rating for this expression. Daniel Junyszek
Source https://en.wikipedia.org/wiki/Airline_codes
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials