Trying to match nil to a regex was killing the read thread X_X