Edexcel GCSE Computer Science · 1CP2
Specification 6.4.3 · Paper 2
Revise: Data Validation TechniquesA pattern check tests whether characters follow a required format. A length check alone cannot do this: two strings can have the same length but contain different kinds of characters.