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.
-
exact
-
-
exp
-
-
ignoreCase
- if true then the matching process ignores case.
-
mids
-
-
prefix
-
-
prefixLen
-
-
suffix
-
-
suffixLen
-
-
totalLen
-
-
Regexp(String)
- Create a new regular expression object.
-
main(String[])
-
ignoreCase
public boolean ignoreCase
- if true then the matching process ignores case.
exp
public String exp
prefix
public String prefix
suffix
public String suffix
exact
public boolean exact
prefixLen
public int prefixLen
suffixLen
public int suffixLen
totalLen
public int totalLen
mids
public String mids[]
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.
main
public static void main(String argv[])
All Packages Class Hierarchy This Package Previous Next Index