Gas?!

Rebecca
I've been having really bad gas pain/bloating recently. I've been avoiding foods that make it worse (e.g. Beans, soda, broccoli, dairy etc.) but it's not helping much. It's so bad that some nights I can't sleep. Does anyone have advice on what's helped with this?