Class sun.server.misc.Regexp
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.misc.Regexp

java.lang.Object
   |
   +----sun.server.misc.Regexp

public class Regexp
extends Object
A class to represent a regular expression. Only handles '*'s.

Variable Index

 o exact
 o exp
 o ignoreCase
if true then the matching process ignores case.
 o mids
 o prefix
 o prefixLen
 o suffix
 o suffixLen
 o totalLen

Constructor Index

 o Regexp(String)
Create a new regular expression object.

Method Index

 o main(String[])

Variables

 o ignoreCase
  public boolean ignoreCase
if true then the matching process ignores case.
 o exp
  public String exp
 o prefix
  public String prefix
 o suffix
  public String suffix
 o exact
  public boolean exact
 o prefixLen
  public int prefixLen
 o suffixLen
  public int suffixLen
 o totalLen
  public int totalLen
 o mids
  public String mids[]

Constructors

 o Regexp
  public Regexp(String s)
Create a new regular expression object. The regular expression is a series of constant strings seperated by *s. For example:
*.gif
Matches any string that ends in ".gif".
/tmp/*
Matches any string that starts with "/tmp/".
/tmp/*.gif
Matches any string that starts with "/tmp/" and ends with ".gif".
/tmp/*new*.gif
Matches any string that starts with "/tmp/" and ends with ".gif" and has "new" somewhere in between.

Methods

 o main
  public static void main(String argv[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index