VerbalExpressions/CSharpVerbalExpressions

Suggestions and Improvements

Opened this issue · 0 comments

Hi, I admire your work, and these are some suggestions:
1- Add "Const" as another name to "Then"
2- Add another overload to AnyOf that accepts Char Array, because it's more friendly.

 public VerbalExpressions AnyOf(char[] value, bool sanitize = true)
        {
            if (value == null)
                throw new ArgumentNullException("value");

            return AnyOf(string.Join ("", value));
        }

3- Range Method can be more friendly like this:
Range(char start, char end);
Range(int start, int end);

4- A Repeat(string Valuem, int min, int max) will be useful , and A Repeat(VerbalExpressions expr, int min, int max ) will be more friendly than BeginCapture/EndCapture/RepeatPrevious, besides RepeatPrevious(int min, int max)

5- Need some methods without parameters such as Letter(), UpperCaseLetter(), LowerCaseLetter(), Digit(), Boundry() and other famous formulas.

6- All Repetition methods needs optional param. for laziness.

5- Where Are LookAhead(), LookBehind( ), Atomic(VerbalExpressions Exp1)?

7- Add If(VerbalExpressions expr, VerbalExpressions expr1, VerbalExpressions expr2) to imo;ement regex conditions.