You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main search method, using regular expressions. The regular expression syntax in use is
5117
-
that from Notepad++, which is actually the `Boost::Regex <https://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/index.html>`_
5117
+
that from Notepad++, which is actually the `Boost::Regex <https://www.boost.org/doc/libs/1_80_0/libs/regex/doc/html/index.html>`_
5118
5118
implementation (specifically the Perl regular expression syntax).
5119
5119
5120
5120
``flags`` are from the re module (e.g. ``re.IGNORECASE``), so ``import re`` if you use the flags.
@@ -5130,7 +5130,7 @@ Helper Methods
5130
5130
successfully performed, an error occurs. When a standard Python string is used, no conversion takes place. If you need to replace
5131
5131
strings in documents in both UTF-8 and ANSI (or other single byte encodings), then it's best to pass unicode strings.
5132
5132
5133
-
``matchFunction`` is a function that gets callled with each match. This function receives a single parameter, which is an object resembling a re.MatchObject instance.
5133
+
``matchFunction`` is a function that gets called with each match. This function receives a single parameter, which is an object resembling a re.MatchObject instance.
5134
5134
It only resembles an re.MatchObject because it doesn't support all the methods. Specifically, ``groupdict()``, ``pos``, ``endpos``, ``re`` and ``string``
5135
5135
methods and properties are not supported. ``expand()``, ``group()`` and ``groups()`` (for example) all work identically. The function should
5136
5136
return the string to use as the replacement.
@@ -5157,12 +5157,12 @@ Helper Methods
5157
5157
5158
5158
5159
5159
``startPosition`` is the binary position to start the search. Use :meth:`editor.positionFromLine`
5160
-
to get the binary position from the (zero indexed) line number.
5160
+
to get the binary position from the (zero indexed) line number. The startPosition needs to be smaller than the endPosition.
5161
5161
5162
5162
``endPosition`` is the binary position to end the search. Use :meth:`editor.positionFromLine`
5163
5163
to get the binary position from the (zero indexed) line number.
5164
5164
5165
-
If ``maxCount`` is not zero or None, then the search stops as soon as ``maxCount`` matches have been found.
5165
+
If ``maxCount`` is a positive integer number, then the search stops as soon as ``maxCount`` matches have been found. Otherwise all matches that could be found.
0 commit comments