public class

Regexp

extends Object
java.lang.Object
   ↳ sun.misc.Regexp

Class Overview

A class to represent a regular expression. Only handles '*'s.

Summary

Fields
public boolean exact
public String exp
public boolean ignoreCase if true then the matching process ignores case.
public String[] mids
public String prefix
public int prefixLen
public String suffix
public int suffixLen
public int totalLen
Public Constructors
Regexp(String s)
Create a new regular expression object.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public boolean exact

public String exp

public boolean ignoreCase

if true then the matching process ignores case.

public String[] mids

public String prefix

public int prefixLen

public String suffix

public int suffixLen

public int totalLen

Public Constructors

public Regexp (String s)

Create a new regular expression object. The regular expression is a series of constant strings separated 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.