Apologies all for not going into enough detail – really did intend on making this a relatively easy question to answer..!
Here is a good long sample of text:
13:29 Jim: Cos I was leaving you
13:29 Jim: And wandering off
13:29 Jim: To look at some random store
13:35 Jane: Oh
13:35 Jane: Thanks
13:37 Jane: I can’t find a taxi
13:37 Jane: I’m going to try and book a late gym class and then get a late train home
13:37 Jim: ?
13:38 Jane: Yeah
13:38 Jane: It’s a pain
13:39 Jane: Likely won’t get home till 10
13:39 Jane: But c’est la vid
13:39 Jim: Come to the office
13:39 Jim: Grab the key
13:39 Jane: *vid
13:39 Jim: Go to mine
13:39 Jane: Arrr
13:39 Jane: *vie
13:39 Jane: No no it’s okay
13:39 Jim: No it’s really okay
13:39 Jane: I should probably go home
13:39 Jane: Don’t worry
13:39 Jim: Ahhh come on you were clearly asking me if you could come
13:39 Jim: See
13:40 Jim: See
13:40 Jane: I wasn’t
13:40 Jane: I was venting
———-
Here is the ideal result:
13:29 Jim: Cos I was leaving you
[TAB] And wandering off
[TAB] To look at some random store
13:35 Jane: Oh
[TAB] Thanks
[TAB] I can’t find a taxi
[TAB] I’m going to try and book a late gym class and then get a late train home
13:37 Jim: ?
13:38 Jane: Yeah
[TAB] It’s a pain
[TAB] Likely won’t get home till 10
[TAB] But c’est la vid
13:39 Jim: Come to the office
[TAB] Grab the key
13:39 Jane: *vid
13:39 Jim: Go to mine
13:39 Jane: Arrr
[TAB] *vie
[TAB] No no it’s okay
13:39 Jim: No it’s really okay
13:39 Jane: I should probably go home
[TAB] Don’t worry
13:39 Jim: Ahhh come on you were clearly asking me if you could come
[TAB] See
[TAB] See
13:40 Jane: I wasn’t
[TAB] I was venting
The aim is to have the conversation read more naturally on the page as a result of the removal, because each individual message after the first from a person will simply read as a new line rather than having to read their name again.
So, instance 1 of “NAME1:” remains, then instances 2, 3, 4, 5, 6, and so on until “NAME2:” is written are deleted and replaced by a tab character. It is more complex than I explained up there; I understand if the answer is ‘this can’t be done’ – but I live in hope! I have a few thousand messages to apply this to otherwise. We shouldn’t worry too much about the time specifically as I know I can remove that with a different expression (and have done on some sections of text already) but the names are the things giving me issues.