org.knime.base.util
Class WildcardMatcher

java.lang.Object
  extended by org.knime.base.util.WildcardMatcher

public final class WildcardMatcher
extends Object

Simple class to convert wildcard patterns into regular expressions.

Author:
Thorsten Meinl, University of Konstanz

Method Summary
static String wildcardToRegex(String wildcard)
          Converts a wildcard pattern containing '*' and '?' as meta characters into a regular expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

wildcardToRegex

public static String wildcardToRegex(String wildcard)
Converts a wildcard pattern containing '*' and '?' as meta characters into a regular expression.

Parameters:
wildcard - a wildcard expression
Returns:
the corresponding regular expression


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.