Stabbing rib/under breast pain!

Anyone have this?  It's anywhere from a dull to a stabbing pain. Mostly on my right side. It keeps me up all night!  Any relief would be helpful. Doc said I could use a heating pad on my sides and take Tylenol. I'm 35 weeks.