global flag on cleaning regexp