Add in require global flag for perl regex statement as needed