Пример #1
0
 /// <summary>
 /// Matches any letter (A to Z), case insensitive.
 /// </summary>
 /// <returns>[a-zA-Z]</returns>
 public static RegExBuilder LetterCaseInsensitive(this RegExBuilder regex) => regex.AddToStreamReturnQuantifiers(@"[a-zA-Z]");
Пример #2
0
 /// <summary>
 /// Matches any lower case letter (A to Z).
 /// </summary>
 /// <param name="regex"></param>
 /// <returns>[a-z]</returns>
 public static RegExBuilder LetterLowerCase(this RegExBuilder regex) => regex.AddToStreamReturnQuantifiers(@"[a-z]");
Пример #3
0
 /// <summary>
 /// Matches a new line with an optional carriage return.
 /// </summary>
 /// <returns>\r?\n</returns>
 public static RegExBuilder NewlineWithOptionalCarriageReturn(this RegExBuilder regex) => regex.AddToStreamReturnQuantifiers(@"\r?\n");