Example below shows how to use different quantifiers in a single pattern.

Java Code:
Pattern pattern = Pattern.compile("(H[ae]l{2}o){3}");
CharSequence inputStr = "HalloHelloHello HelloHelloHello Heeello H_llo Hillo1";
Matcher matcher = pattern.matcher(inputStr);
while(matcher.find())
{
int start = matcher.start();
int end = matcher.end();
System.out.println("Pattern found:  " + inputStr.subSequence(start, end).toString());
}