A regular expression to match SEDOL codes (Stock Exchange Daily Official List number, a code used by the London Stock Exchange to identify foreign stocks).
/([B-Db-dF-Hf-hJ-Nj-nP-Tp-tV-Xv-xYyZz\d]{6}\d)/
Matches
- 0540528
- 1234567
- D01CL06
Non-matches:
- 123456
- A1B2C36
- D01CL0B