GAIAEH-338 added global flag to regular expression