Can you take ex lax or miralax if you have a stomach ulcer?

Yes. There are no. known drug interactions with most medications that treat stomach ulcers. However, since I don't know what other meds you're taking, to be on the safe side, take your laxative 1 hour before or two hours after you take your other meds. Dr. Anne.