

The Alphanumeric Field to accept values only of 10 numbers and characters. Matching numbers that don't have a pattern like those divisible by 2,4,5,10 etc can't always be done succinctly and you usually have to resort to a range of numbers. One field is a Alphanumeric Field (Text) and Another is Numeric (Number). So the whole sequence can be reduce to: |\d*(|) - numbers divisible by 4 So if our regex is / 5-9/ it will match our first one. Also, as the 40s, 60s and 80s have the same pattern we can include them: and the others have a pattern too. As regex is a pattern matching language, we can only match pattern with it. For example, instead of using 20|24|28 we can use 2. \d* matches any number that divides by 2 - any number ending in 0,2,4,6 or 8 \d* matches any number that divides by 5 - any number ending in 0 or 5 \d*00 matches any number that divides by 100 - any number ending in 00

Matching numbers that divide by other numbers: \d*0 matches any number that divides by 10 - any number ending in 0 \d|100 matches 0 to 100 one to two digits OR 100 \d* will match 0 or more consecutive digits The Regex object Because the DumpHRefs method can be called multiple times from user code, it uses the static ( Shared in Visual Basic) Regex.Match(String, String, RegexOptions) method. \d+ will match 1 or more consecutive digits Matching multiple digits \d\d will match 2 consecutive digits Where a and b are digits in the range 0 to 9 will match a single digit in the range 3 to 7.
