Title: IDLE: document search (find) and replace better
Type: enhancement Stage: needs patch
Components: IDLE Versions: Python 3.11
Status: open Resolution:
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: terry.reedy
Priority: normal Keywords:

Created on 2021-09-14 22:13 by terry.reedy, last changed 2021-09-14 22:13 by terry.reedy.

Messages (1)
msg401801 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-09-14 22:13
The doc currently just says that the Search, File Search, and Search&Replace dialogs exist for the corresponding menu entries.
  Add a short section in "Editing and navigation" to say more.

1. Any selection becomes search target, except that S&R is buggy.
2. Search is only within lines.  .* and \n do not match \n even with RE.
3. [x]RE uses Python re module, not tcl re.  It applies to replace also.  So if target RE has capture groups, \1 (and \gname? test) in replacement works.(match.expand(repl))
4. Refer to re chapter and RegularExpression HOWTO.
Date User Action Args
2021-09-14 22:13:34terry.reedycreate