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

Field Summary
 boolean exact
           
 java.lang.String exp
           
 boolean ignoreCase
          if true then the matching process ignores case.
 java.lang.String[] mids
           
 java.lang.String prefix
           
 int prefixLen
           
 java.lang.String suffix
           
 int suffixLen
           
 int totalLen
           
 
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
 

Field Detail

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
Constructor Detail

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.
Method Detail

main

public static void main(java.lang.String[] argv)