+1 vote
161 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) | 161 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
1 answer 282 views
Hi all As I was cleaning up some of the old projects in Paratext, I find some lists of things used which I need to ... the same (but not in a particular field like only in \fig
binoy 327 asked Sep 15, 2022
0 votes
3 answers 861 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
1 answer 246 views
I'm supporting a user who's having trouble using Find/Replace. The same problem presents itself whether he does it ... ? Is there a way to troubleshoot it? Thanks, n8_in_car
n8_in_car 298 asked Nov 22, 2019
0 votes
1 answer 216 views
Some projects after some time decide that they do not want periods or other sentence final punction at the end of ... No as appropriate. Admin Edit: Fixed formatting of post.
[Expert]
Jeff_Shrum
2.9k
asked Aug 29, 2022
0 votes
1 answer 169 views
Can I search for a word in the translated text, and then do an automated Replace all of a word in the back ... in those verses where that word was found in the translated text?
anon958860 127 asked Mar 1, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And let us consider how we may spur one another on toward love and good deeds, not giving up meeting together, as some are in the habit of doing, but encouraging one another—and all the more as you see the Day approaching.
Hebrews 10:24-25
3,037 questions
5,994 answers
5,661 comments
2,022 users