Convert to regex.