I am trying to match SEDOL (exactly 7 characters: 6 alphanumeric characters followed by 1 char number)
My regex
([A-Z0-9]{6})[0-9]{1}
right, but lines exceeding 7 characters that begin with a valid match also match (if you understand what I mean :)). For instance:
B3KMJP4
matches correctly, but also:
B3KMJP4x
which should not match.
Can someone show me how to avoid this?
Simon source
share