+1 vote
166 views
I am sure the answer to this must be out there somewhere, but I can't find it. How can I restrict a search and replace (either "normal" or Regex) to only a certain USFM field? This would seem to be such a basic restriction that I expected it to be an option in the RegEx Pal menu. Thanks for the help. I'm sure that if I make a RegEx statement complicated enough it is possible, but that is beyond my level of competence.
Paratext by (206 points) | 166 views

1 Answer

+1 vote

With RegexPal you can use three colons to enter a "context search" before the actual search, e.g.

\\f .*?\\f\*:::abc

This searches for footnotes \\f .*?\\f\* and in this context for abc.

by (872 points)

Related questions

0 votes
3 answers 885 views
[There is no Help topic for RegEx Pal, so I'll start this thread for myself or anyone else to add helpful ... History panic (post #3) Key terms for search: regular expression
wdavidhj 1.4k asked Jun 5, 2019
0 votes
5 answers 587 views
In our project's Biblical Terms list, I'm looking for an (easier) way to filter for terms which contain too many ... \r\n and filter more specifically that way? Any suggestions?
Mark P 3.2k asked Jul 4, 2017
0 votes
1 answer 71 views
How do I create a REGEX search to find all unique proper names in the OT with a source text that uses the \pn .. ... each term? Some of this may need to happen outside of Paratext.
Clear7419 251 asked Nov 19, 2024
0 votes
2 answers 626 views
I need to find out what percentage of each book has been drafted. A count of how many verses in each book have text ... Thanks for any help you can give me on this. John Nystrom
john_nystrom 312 asked Aug 21, 2024
0 votes
2 answers 269 views
I want to search how many times KJV used the word "and" at the beginning of a sentence. Is there any filter to do that?
Waseem Raza 102 asked Jun 12, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Finally, all of you, be like-minded, be sympathetic, love one another, be compassionate and humble.
1 Peter 3:8
3,037 questions
5,994 answers
5,661 comments
2,022 users