View Single Post
Old 08-06-2023, 12:08 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,377
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
replace all and replace and find are very different. In the first case every search is run all matches are found and replaced. In particular it means that search 2 is run on the text after all replaces from search 1 are done. Similarly for search 3 it is run on text after all replacements from 1 and 2 are done and so on.

Whereas for replace and find, you are doing one replace then jumping to the first match from any of the searches in the remaining text.
kovidgoyal is offline   Reply With Quote