com.ibm.net.ssl.internal.www.protocol.https
Class Regexp
java.lang.Object
|
+--com.ibm.net.ssl.internal.www.protocol.https.Regexp
- public class Regexp
- extends java.lang.Object
A class to represent a regular expression. Only handles '*'s.
- Author:
- James Gosling
Constructor Summary |
Regexp(java.lang.String s)
Create a new regular expression object. |
Method Summary |
static void |
main(java.lang.String[] argv)
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ignoreCase
public boolean ignoreCase
- if true then the matching process ignores case.
exp
public java.lang.String exp
prefix
public java.lang.String prefix
suffix
public java.lang.String suffix
exact
public boolean exact
prefixLen
public int prefixLen
suffixLen
public int suffixLen
totalLen
public int totalLen
mids
public java.lang.String[] mids
Regexp
public Regexp(java.lang.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(java.lang.String[] argv)