Hi
Thanks for choosing HCM for your query.
I appreciate your concern towards 
H pylori infection which normally causes break in the lining of the stomach (
peptic ulcer).
H pylori is an exceptional bacteria which can survive in the acidic environment of the stomach producing tissue damage result in ulcer.
Since this is a bacterial infection, hence antibiotics are used for 2 weeks to kill H pylori. Along with antibiotics 
Omeprazole is given for a period of 4-6 weeks to suppress the acid production and to increase the healing process of the ulcer.
It is not a serious condition, usually triple treatment is sufficient enough to cure this condition. 
You must avoid taking Alcohol, hot and spicy foods, 
NSAID pain killer, 
smoking, caffeine, carbonated sweetened soft drinks,etc.
I hope all your doubts have been clarified in a simple language,
A feedback in this regard is highly appreciated.
Take care