RESyntax syntax = RESyntax.RE_SYNTAX_PERL5;
RESyntax syntax = RESyntax.RE_SYNTAX_JAVA_1_4;
  private Pattern (String regex, int flags)    throws PatternSyntaxException  {    this.regex = regex;    this.flags = flags;    int gnuFlags = 0;    if ((flags & CASE_INSENSITIVE) != 0)      gnuFlags |= RE.REG_ICASE;    if ((flags & MULTILINE) != 0)      gnuFlags |= RE.REG_MULTILINE;    if ((flags & DOTALL) != 0)      gnuFlags |= RE.REG_DOT_NEWLINE;    // not yet supported:    // if ((flags & UNICODE_CASE) != 0) gnuFlags =    // if ((flags & CANON_EQ) != 0) gnuFlags =    // Eventually there will be such a thing as JDK 1_4 syntax    RESyntax syntax = RESyntax.RE_SYNTAX_PERL5;    if ((flags & UNIX_LINES) != 0)      {	// Use a syntax set with \n for linefeeds?	syntax = new RESyntax(syntax);	syntax.setLineSeparator("\n");      }    if ((flags & COMMENTS) != 0)      {	// Use a syntax with support for comments?      }    try      {	this.re = new RE(regex, gnuFlags, syntax);      }    catch (REException e)  {	throw new PatternSyntaxException(e.getMessage(),					 regex, e.getPosition());  }  }