Added global modifier to regular expression.