2 using System.Collections.Generic;
\r
4 using java.util.regex;
\r
7 namespace System.Text.RegularExpressions
\r
9 sealed class LookBehindWithUndefinedLength : IConstructType
\r
11 //private const string DEFINITION = @"\(\?<[=!].*(?:[\*\+]|\{\d+,\}).*\)";
\r
12 private const string DEFINITION = @"\(\?<[=!][^\)]*\)";
\r
14 public bool HasConstruct (string pattern, RegexOptions options) {
\r
15 return JavaUtils.IsMatch (pattern, DEFINITION);
\r
18 public string Reformat (RegexOptions options,
\r
19 string reformattedPattern,
\r
20 PatternGrouping patternGrouping) {
\r
21 throw new NotImplementedException ("Reformat for look ahead with undefined length construct is not implemented.");
\r