I have used this regexp succesfully in php with flags gmU and have multiple matches. In js there is no U flag and this only returns last match. Is there anything I can do to make this work similarly in javascript?