Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(\d{12})([A-HK-MRT-Y]{1})$
/
gm

Description

Basic validation of UK student UCI numbers. Please note that further validation must be done to confirm the final character ( the 'control character') is correct: http://www.wjec.co.uk/exam-officers/entries/unique-candidate-identifiers.html

Submitted by GeekJosh - 8 years ago