Possible Duplicate:
What regular expression can never match?
I'm looking for a regular expression that will not match any string. Example:
suppose I have the following Java code
public boolean checkString(String lineInput, String regex)
{
final Pattern p = Pattern.compile(regex, Pattern.CASE_INSENSITIVE);
final Matcher m = p.matcher(lineInput);
return m.matches();
}
In some conditions I want that checkString will return false for all all lineInput.Cause I control only regex (and not lineInput) is there a value that will NOT match any string ?
-- Yonatan