Add global flag to example regular expression