org.owasp.webscarab.util
Class Glob

java.lang.Object
  extended by org.owasp.webscarab.util.Glob

public class Glob
extends java.lang.Object

Utility class for converting a Unix shell style glob to a Java Regular Expression Shameless "stolen" from JEdit, with many thanks.

Author:
jedit team

Method Summary
static java.lang.String globToRE(java.lang.String glob)
          Converts a Unix-style glob to a regular expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

globToRE

public static java.lang.String globToRE(java.lang.String glob)
Converts a Unix-style glob to a regular expression. ? becomes ., * becomes .*, {aa,bb} becomes (aa|bb).

Parameters:
glob - The glob pattern