I have a file with this format:
Title 1
- Character Name
- Character Name2
- CharacterB Name3
Title 2
- Character Name2
Title 3
- CharacterC Name4
and what I would like to end up with is a file like this:
Character Name,Title 1
Character Name 2,Title 1,Title 2
CharacterB Name 3,Title 1...