Matcher
Hi,
i have a larg number of item seperated by semicolons and stroed in a String object.
each item could includ pattern...we have following patterns:
1- * (Asterisks)Use asterisk to filter on a match of zero or more characters.
2- ! (Exclamation Mark)Use exclamation mark to filter the search using the NOT operator.
3- && (Ampersand)Use ampersand to filter objects where a single value should be matched with many patterns.
4- \ (Back Slash)Use back slash to filter objects when the name of the object itself contains a comma. This character is called an escape sequence because it avoids searching for objects, as if they had two different names.
5- <between> value1 and value2
an example of such String object is : a*,!b, a* && !c,.....
suppose i have a method named isValid(String item), the caller of this method pass a single item like "amesterdam" to this method and this method returns true just if the item matched in the String object.
the question is: what is the best way to matching one item from this String?
Rgrds
now i have

