This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE: document search (find) and replace better
Type: enhancement Stage: needs patch
Components: IDLE Versions: Python 3.11
process
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 2022-04-11 14:59 by admin.

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.
History
Date User Action Args
2022-04-11 14:59:50adminsetgithub: 89362
2021-09-14 22:13:34terry.reedycreate