Monday, April 04, 2005

Regular expression to find potential SEDOL's


This regular expression accepts SEDOL (Stock Exchange Daily Official List number, a code used by the London Stock Exchange to identify foreign stocks).
To be more exact - it accepts potential SEDOL's, since the last, 7th digit of a sedol is a kind of check-sum digit and this reg-ex doesn't check's its correctness. Also, despite following to the formal SEDOL definition - its first character should be a consonant character - there are actual sedol's with the first character, which is a number (e.g. 0067340 for BAA) and they are accepted by this reg-ex.

[Listening to: Bongo Bong - Manu Chao - Clandestino (2:38)]

No comments: