org.apache.camel.karaf.commands.internal
Class RegexUtil

java.lang.Object
  extended by org.apache.camel.karaf.commands.internal.RegexUtil

public final class RegexUtil
extends Object

Util class.


Method Summary
static String wildcardAsRegex(String wildcard)
          convert a wild card containing * and ? to the equivalent regex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

wildcardAsRegex

public static String wildcardAsRegex(String wildcard)
convert a wild card containing * and ? to the equivalent regex

Parameters:
wildcard - wildcard string describing a file.
Returns:
regex string that could be fed to Pattern.compile


Apache CAMEL