+1 vote
180 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) | 180 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 1.1k 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 652 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 145 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 671 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 317 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.
How good and pleasant it is when God’s people live together in unity!
Psalm 133:1
3,048 questions
6,007 answers
5,672 comments
2,028 users