/Immutable-Regular-Expression

Experiments with Regular Expression

Primary LanguageC#

Immutable Regular Expression

Regular Expressions can be very useful, but the pattern is not always direct clear.

Several experiments where handy.

Regex1

Replace invalid characters with a hyphen.

Regex2

In Banking the should return a correct match.

Regex3

In Banking the full tally has a following number like "full tally 020". The names in the list should not a number.

Regex4

In JoostMantainence has OpenedArticles with some a number of pieces, like tissues. The number in the name of opened articles made list useless.

The SplitArticle method gave tuple with a clear article name and the number of items.