2 using System.Collections.Generic;
\r
4 using java.util.regex;
\r
7 namespace System.Text.RegularExpressions
\r
9 sealed class NotAllowedConstruct : IConstructType
\r
11 private const string DEFINITION = @"(\A|((\A|[^\\])([\\]{2})*\((\?([:>=!]|<([=!]|(\w+>))))?))\{\d+(,(\d+)?)?\}";
\r
13 public bool HasConstruct (string pattern, RegexOptions options) {
\r
14 return JavaUtils.IsMatch (pattern, DEFINITION);
\r
17 public string Reformat (RegexOptions options,
\r
18 string reformattedPattern,
\r
19 PatternGrouping patternGrouping) {
\r
20 throw new NotImplementedException ("Reformat for not allowed constructs is not implemented.");
\r