Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
PCRE (PHP <7.3)

/
([A-Z]{4})\s*([0-9]{6})[\s-\/]?([0-9])
/

Description

Pattern for container numbers. Without the digit verification of course.

Submitted by Philippe Michiels - 9 years ago