From 98099e32d5cd34985025bf284786b462b1c11195 Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Wed, 19 Nov 2025 17:49:38 +0100 Subject: [PATCH] Encourage use of regex mode more strongly --- src/serena/tools/file_tools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/serena/tools/file_tools.py b/src/serena/tools/file_tools.py index 96b58907..69e5c140 100644 --- a/src/serena/tools/file_tools.py +++ b/src/serena/tools/file_tools.py @@ -183,6 +183,7 @@ class ReplaceContentTool(Tool, ToolMarkerCanEdit): especially if it spans several lines. Note that you cannot make mistakes, because if the regex should match multiple occurrences while you disabled `allow_multiple_occurrences`, an error will be returned, and you can retry with a revised regex. + Therefore, using regex mode with suitable wildcards is usually the best choice! :param relative_path: the relative path to the file :param needle: the string or regex pattern to search for.