Juste pour m'assurer que c'est clair, dans RegEx Pal (disponible dans le menu principal de Paratext, sous Avancé), vous pouvez rechercher : \\s\d? [^\r]+\r\n et le remplacer par rien pour supprimer les titres de section. Cela inclut la barre oblique inversée supplémentaire dont LivingField parlait. (Il est possible que les auteurs précédents n'aient pas marqué leur expression régulière comme « Texte préformaté » lorsqu'ils écrivaient leur message, de sorte qu'une des barres obliques inversées a été « mangée » dans la sortie.)
En réponse à @mnjames, cette expression régulière prend automatiquement en charge toutes les formes de titres de section, \s, \s1, s2, etc. L'expression régulière contient \d?, ce qui lui indique de correspondre à un chiffre facultatif, de sorte qu'elle correspond à toutes ces formes de titres de section. Vous n'avez pas besoin de rechercher les marqueurs \s séparément.
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.
Traduit automatiquement depuis English Afficher l'original