Added Global substitution to regex.rb