0 votes

Dear Paratext users,

We are working on a project and need to change the beginning of the verse from a lowercase letter to an uppercase letter through regex. If anyone is able to assist in this matter, I would appreciate it.

For example:

\v 15 and let them be for lights in the firmament of the heaven to give light upon the earth: and it was so.
\p
\v 16 And God made two great lights; the greater light to rule the day, and the lesser light to rule the night: \add he made\add* the stars also.
\p
\v 17 And God set them in the firmament of the heaven to give light upon the earth,
\p
\v 18 and to rule over the day and over the night, and to divide the light from the darkness: and God saw that \add it was\add* good.

Thanks with regards,

Thiyagarajan

Paratext by (110 points)

1 Answer

0 votes
This can be done by using the list feature of RegEx Pal. There is a discussion of this at:

https://support.bible/9271/using-a-list-for-replacing-in-regex-pal?show=9271#q9271

or you can search for "Using a list for replacing in RegEx Pal"

Your list of expressions might be something like:

(?<=(\\v \d+ ))a-->A

(?<=(\\v \d+ ))b-->B

(?<=(\\v \d+ ))e-->E

(?<=(\\v \d+ ))i-->I

(?<=(\\v \d+ ))p-->P

This says look for a lowercase letter preceded by \v digits space and change it to uppercase.
by (8.1k points)

It is greatly appreciated that you responded to me so promptly. Having checked these regex rules, I am pleased to report that they appear to work as expected.

Related questions

0 votes
2 answers
0 votes
1 answer
0 votes
2 answers
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
All the believers were one in heart and mind. No one claimed that any of their possessions was their own, but they shared everything they had.
Acts 4:32
2,560 questions
5,287 answers
4,998 comments
1,372 users