Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
(?<Sedol>[B-Db-dF-Hf-hJ-Nj-nP-Tp-tV-Xv-xYyZz\d]{6}\d)
|
Description |
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.
|
Matches |
0067340 | B01HL06 | 4155586
|
Non-Matches |
12345 | 34A56B7 | 456VGHY
|
Author |
Rating:
Alexander Pinsker
|
Title |
Test
Details
Pattern Title
|
Expression |
((\s)*(?<Key>([^\=^\s^\n]+))[\s^\n]* # key part (surrounding whitespace stripped)
\=
(\s)*(?<Value>([^\n^\s]+(\n){0,1}))) # value part (surrounding whitespace stripped)
|
Description |
Regular expression to fetch <key-value> pairs from the old-fashioned .ini files. Key and Value appears in form of named captures with whitespaces stripped on both ends.
|
Matches |
webProxyPort=8080 | webProxyPort = 8080 | webProxyPort = 8080
|
Non-Matches |
abcdefghijk
|
Author |
Rating:
Not yet rated.
Alexander Pinsker
|
Displaying page
of
pages;
Items to