0 votes
343 views

I thought I should start a new topic on this instead of continuing the discussion on a different topic line.

I would like to delete all \s lines (\s, \s1, \s2, etc.) The lines are empty. I can easily delete the markers, but I’m not sure how to delete the lines.

The two following solutions have been proposed, but haven’t worked:
\s\d? [^\]* (did not find any of the \s markers)
\s\d? [^\r]+\r\n (deletes all lines one by one including verses)

Any other ideas?

Paratext by (127 points)
reshown | 343 views

2 Answers

0 votes
Best answer

Hi anon928451,

I think those the two RegEx you listed need another \ before \s at the beginning of the line.

Are there any \s which contain text, or are all \s in the project empty?

If they’re all empty, I think you can do a simple text search for \s and replace it with nothing. And then do another search for \s1, etc. You don’t need to use RegEx. Paratext will take care of cleaning up the empty lines. Of course, if you delete the \s and there was actually text after them, you’d be making a bit of a mess.

by (607 points)

Perfect. I didn’t know Paratext would take out the empty line. Thanks!

Just to add to @LivingField’s comment, you should search for \s1, \s2, etc first, and only delete \s as the last thing.

Why? Because if you delete all the \s markers, every \s1 will just turn into a random 1 hanging out in the middle of your text.

0 votes

Just to make sure it is clear, in RegEx Pal (available on the main Paratext menu, under Advanced), you can search for: \\s\d? [^\r]+\r\n and replace it with nothing to remove section headings. That includes the extra backslash that LivingField was talking about. (It’s possible that the previous posters didn’t mark their regular expression as “Preformatted text” when they were writing their post, so one of the backslashes was “eaten” in the output.)

Replying to @mnjames, this regular expression automatically takes care of all forms of section headings, \s, \s1, s2, etc. The regex contains \d?, which tells it to match an optional digit, so that matches all of those section heading forms. You don’t need to search for the \s markers separately.

by (1.4k points)

Related questions

0 votes
1 answer 288 views
Yesterday, while opening Paratext 9.1, a user got the following popup warning message: Le projet Ban sur votre ordinateur n' ... every time Paratext opens. How can I get rid of it?
n8_in_car 298 asked Nov 17, 2021
0 votes
3 answers 273 views
Can I customize the line spacing of my Back Translation project?
Michel 125 asked Nov 4, 2023
0 votes
2 answers 350 views
Where does the parse gloss line in the interlinearizer take its information from internally? I started trying out an ... 2022-03-04 11_21_20-Paratext 9.21264 269 13.6 KB
anon297911 424 asked Mar 4, 2022
0 votes
1 answer 256 views
When I add a new term or phrase to Biblical Terms, one of the things to fill in is a list of references (one per line ... way to generate such a list in Paratext, as far as I know.
viverechristus 296 asked Jul 15, 2021
0 votes
2 answers 295 views
A team I support has been publishing selected Psalms and other chapters to their Scripture app as the chapters are approved ... might be useful to other teams in other regions too.
anon469793 155 asked Nov 11, 2019
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For just as each of us has one body with many members, and these members do not all have the same function, so in Christ we, though many, form one body, and each member belongs to all the others.
Romans 12:4-5
3,037 questions
5,994 answers
5,661 comments
2,022 users