We should consider using POSIX bracket expressions instead of raw regex patterns where applicable since POSIX bracket expressions better express the intention of a regex pattern.
Take FIELD_VALUE = /[^\000-\037]*/ in connection.rb for example. Expressing /[^\000-\037]*/ as [[:print:]]* does a better job of expressing that a field value must be a printable value.