[New-bugs-announce] [issue45199] IDLE: document search (find) and replace better

Terry J. Reedy report at bugs.python.org
Tue Sep 14 18:13:34 EDT 2021


New submission from Terry J. Reedy <tjreedy at udel.edu>:

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.

----------
assignee: terry.reedy
components: IDLE
messages: 401801
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE: document search (find) and replace better
type: enhancement
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45199>
_______________________________________


More information about the New-bugs-announce mailing list