It often happens that I would like to use the "replace all" function on a specific part of the document. For example a matrix in which many entries have an "a" that would like to replace by a "b^2" without this happening over my entire document.
Is there a way to do this ?

  • welcome and please see the answer below for your requirement -you can see that within the selected code all a have been changed to aaa
    – js bibra
    Commented Mar 3, 2021 at 13:11

1 Answer 1


enter image description here

select code to search / replace

press ctrl+F

dropdown box will appear as shown in image below

select search within selection-- marked with red arrow

enter in first row of dropdown the item to search

in second row type in the new word or text to replace with -- here you see aaa

click replace all

  • Brilliant thanks very much !
    – Mr Lolo
    Commented Mar 3, 2021 at 13:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .