Fix RegExp
Using 'part of' to remove errors for warnings.