Useful Regular Expressions!

Helena edited this page Aug 25, 2015 · 5 revisions

Useful RegX

To find ends of sentences: \.\s[A-Z] Same with capturing groups: (\.)\s([A-Z])

Replace with: \1</s><s>\2

Some tips:

1. Select the text of the transcription (so the regex is not applied to the header)

2. Open the find and replace dialogue (Ctrl + F) and select “Selected lines only”

3. Find: (\.|:|/|\?)\s

4. Replace with: \1</cl>\n<cl>

5. Add a <cl> just after the <p> element and delete the <cl> before the paragraph clossing tag </p>

6. Indent and format the file so it is easier to read: Ctrl + Shift + P , or “Format and indent” bottom in the oXygen tool bar.

Other things to remember: When there is a new clause that begins with a capital letter but punctuation is absent.

Clause.....ends<choice><sic></sic><corr>.<corr></choice></cl><cl>New clause here....
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.