+1 vote
249 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) | 249 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 (874 points)

Related questions

0 votes
3 answers 1.9k 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 1.0k 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
2 answers 993 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 316 asked Aug 21, 2024
0 votes
1 answer 360 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 501 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.
For we were all baptized by one Spirit so as to form one body—whether Jews or Gentiles, slave or free—and we were all given the one Spirit to drink.
1 Corinthians 12:13
3,079 questions
6,045 answers
5,708 comments
2,045 users