P.S. Gas pain can be very severe! I know from experience as well as from my post op abdominal surgery patients. It can be more severe than the op site! Take simethicone for gas pain but get that diet...
I googled "R rib pain" a year ago and remember reading this site while looking for answers. I suffered from chronic back pain, rib pain, and right lower quadrant abdominal pain- sharp, crampy, sore...