diff --git a/.clang-format b/.clang-format
index a920caae32d32c6bece33adb4fb45ac299dad54e..4e17fee5b363c0a273af9a2977f0f9d399b72820 100644
--- a/.clang-format
+++ b/.clang-format
@@ -86,9 +86,9 @@ IncludeCategories:
     Priority:        3
   - Regex:           '^("|<)Logger.h'
     Priority:        3
-  - Regex:           '^("|<)T'
+  - Regex:           '^("|<)T.*\.h'
     Priority:        4
-  - Regex:           '^("|<)Rt'
+  - Regex:           '^("|<)Rt.*\.h'
     Priority:        4
   - Regex:           '^("|<)boost'
     Priority:        5