| java.lang.Object org.mandarax.util.regex.WildcardMatcher
WildcardMatcher | public class WildcardMatcher (Code) | | An utility to match string containing wild cards.
author: Jens Dietrich version: 3.4 <7 March 05> since: 3.0 |
Constructor Summary | |
public | WildcardMatcher(char some, char one, char esc) Constructor. |
WildcardMatcher | public WildcardMatcher(char some, char one, char esc)(Code) | | Constructor.
Parameters: some - the character representing a sequence of characters Parameters: one - the character representing one character Parameters: esc - the character used to unmark special characters |
getPattern | public Pattern getPattern(String pattern)(Code) | | Get the RegEx pattern for the respective string with wild cards.
Parameters: pattern - a pattern string a RegEx pattern instance |
matches | public boolean matches(String pattern, String string)(Code) | | Matches a string and a pattern containing wildcards.
Parameters: pattern - a pattern string Parameters: string - the string to be tested a boolean |
replace | public String replace(String text, char old, String replacement)(Code) | | Utility to replace sub strings by patterns.
Parameters: text - a string Parameters: old - the old text Parameters: replacement - the text replacing the old text the result of the replacement |
|
|