0 votes

Similarly to Iver, I have never used RegEx. I have a team who has changed their cross-reference format to use . between chapter and verse instead of :

Could someone walk me through how to help them change all the references in bulk. I tried to follow the previous answers, but got no results at all.

Are there any courses, EMDC online sessions on RegEx?

Thanks,
anon928451

Paratext by (127 points)

2 Answers

0 votes
Best answer

I don’t know if you learn best this way, but I learned most of my Regex by playing around with Regex101 - which allows you to try out your expressions before actually using them in an application. It contains a nice quick-reference guide on the right which has a section called Common Tokens which will get you making 90% of the expressions you’d ever need.

Note that the 3-colon syntax (:::) is specific to RegexPal and I doubt you’d find any other application that works that way.

by [Expert]
(16.2k points)

reshown
0 votes

A search via RegexPal could look like this:

Search: \\x .*?\\x\*:::( \d+):(\d)
Replace: \1.\2

Where \\x .*?\\x\* means: search only inside of cross references
The three colons ::: separate between the context search expression and the actual search
Actual search expression: ( \d+):(\d) One or more digits, followed by a colon and then another digit
Replace: Put together the content of the first expression in parens, a literal dot and the content of the second pair of parens

(I don’t know of any regex online sessions.)

by (830 points)

HI anon719148,

I can’t say I fully understand it all, but it does seem to work. I’m looking forward to learning more at some point.

Thank you so much!

anon928451

Related questions

0 votes
1 answer
0 votes
8 answers
Paratext Jun 9, 2021 asked by benVar (229 points)
0 votes
1 answer
Paratext Mar 30, 2023 asked by Paul (615 points)
0 votes
5 answers
Paratext Aug 29, 2022 asked by anon062569 (184 points)
0 votes
6 answers
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Very truly I tell you, whoever accepts anyone I send accepts me; and whoever accepts me accepts the one who sent me.
John 13:20
2,628 questions
5,370 answers
5,045 comments
1,420 users