I'm trying to create a macro to bulk edit documents. I have two key things I need to accomplish with a find and replace.
First is removing everything BEFORE the first instance of a speaker tag:
_Transcription details:_
------------------- ---------------------
Date: 05-Dec-2016
Input sound file: UKCHBOSTX021201.m4a
------------------- ---------------------
_Transcription results:_
---------- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TEACHER: Who can tell me the topic we have been doing this week and last week?
This first speaker could either be STUDENT: or TEACHER: and will not be anything else. I can't seem to get any find and replace to work without removing everything before the LAST instance of this as opposed to the FIRST.
The second is that I need all STUDENT: dialogue removed:
TEACHER: Who can tell me the topic we have been doing this week and last week?
STUDENT: [inaudible]
TEACHER: 0, 7, 14, 21, 28, 35, 42, 49, 56, 63, 70, 77, 84. Let's go backwards.
STUDENT: 84, 77, 70, 63 6, 49, 42, 35, 28, 21, 40, 7, 0.
Again, I seem to only be able to remove everything between the FIRST instance o STUDENT: and the LAST paragraph break using the following
FIND: STUDENT:(.*)\r\n
REPLACE: STUDENT:\r\n
Clearly I'm missing something. My knowledge of regex is very limited and I'm not a programmer of any kind.
Is anyone able to shed some light?