/(foo) (bar)? (bif){3,5}/x #### /( ((foo){2,3} (bar)*) | ((foo) (bar)* (bif){1,3}) )+/x