PaRunk Posted June 4, 2020 Share Posted June 4, 2020 Hi,I would have a question about searching and replacing: Where can I set that the search does not search the entire document, but only the area that I have selected and makes the changes.I haven't found this setting yet. Require this function so that the entire document is not searched continuously in order to be able to make the changes only in this area.With a brochure with over 100 pages, it is very tedious to constantly click through the results found in order to then be able to correct the correct points individually.It would be better to select the text area, carry out searches and to be able to correct all found results at the same time with one command.If this function is not available, I would be glad if you could add this function with the search area limitation. Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted June 4, 2020 Share Posted June 4, 2020 It can be done, but only using Regular Expressions, and, I think, only within a particular set of linked text frames (aka, a "story"). It would be better if there were a simpler way of doing it. Assume that you have a set of linked text frames, and within that set you want to change ABC to DEFG. You can do the following: Insert a unique text string that doesn't appear elsewhere in the document at the beginning of the first text frame in the set. Perhaps something like AAAStart. Insert another one at the end of the last text frame in the set, say AAAEnd. In the Find and Replace panel, click the gear cog for the Find field and make sure that the Regular Expression option is selected. In the Find field, put: (AAAStart.*)(ABC)(.*AAAEnd) In the Replace field, put: \1DEFG\3 Click Find, then Replace to work through the list. When done, you might do a Find again to make sure none were missed. And finally remove the AAAStart and AAAEnd tags. Note that the AAAStart and AAAEnd strings should not contain any characters that are significant to Regular Expression parsing. if the "ABC" string contains any characters that are significant to Regular Expression parsing you will need to escape them with a \ or some other method. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. iPad: iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.