RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 4
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: The rating for this expression. Alexander Pinsker
Title Test Details Pattern Title
Expression
[AaEeIiOoUuYy]
Description
This simple reg-ex accepts any vowel letter.
Matches
a | o | e
Non-Matches
z | x | w
Author Rating: Not yet rated. Alexander Pinsker
Title Test Details Pattern Title
Expression
((\s)*(?&lt;Key&gt;([^\=^\s^\n]+))[\s^\n]* # key part (surrounding whitespace stripped) \= (\s)*(?&lt;Value&gt;([^\n^\s]+(\n){0,1}))) # value part (surrounding whitespace stripped)
Description
Regular expression to fetch &lt;key-value&gt; 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 1 of 1 pages; Items 1 to 4

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials