You are matching it globally. I don’t know for what purpose nor where you need it.
Check it here http://regexpal.com/
Make sure you have unchecked the global check button.
If you match it globally it searches the whole document/text and match it everywhere it can. This is why you get work
matched twice
solved Regular expression stop after first match [duplicate]