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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[a-zA-Z]{3}[uU]{1}[0-9]{7}$
Description
Standard freight container number in upper or lower case.
Matches
HJCU1234567 | coou9876543
Non-Matches
HJCY1234567 | HJCU123456
Author Rating: Not yet rated. Jeremy Baynham
Source
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

Title: Freight Container Pattern
Name: David Roff
Date: 11/18/2009 10:20:46 AM
Comment:
Nice one Jeremy, just thought id add that you can have Z or J as the 4th character also, so i have used your example and added these in ^[a-zA-Z]{3}[uUjJzZ]{1}[0-9]{7}$ details of rules for freight container numbers here: http://en.wikipedia.org/wiki/ISO_6346#Check_Digit


Title: Freight Container Pattern
Name: David Roff
Date: 11/18/2009 9:40:10 AM
Comment:
Nice one Jeremy, just thought id add that you can have Z or J as the 4th character also, so i have used your example and added these in ^[a-zA-Z]{3}[uUjJzZ]{1}[0-9]{7}$ details of rules for freight container numbers here: http://en.wikipedia.org/wiki/ISO_6346#Check_Digit


Title: Freight Container Pattern
Name: David Roff
Date: 11/18/2009 9:39:54 AM
Comment:
Nice one Jeremy, just thought id add that you can have Z or J as the 4th character also, so i have used your example and added these in ^[a-zA-Z]{3}[uUjJzZ]{1}[0-9]{7}$ details of rules for freight container numbers here: http://en.wikipedia.org/wiki/ISO_6346#Check_Digit


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