I've tried to make a trigger to try to capture only names from output such as:
However, the problem is that there may be any number of (C), (I), (G), such things before the names. I've managed to capture the names such as Zombie, a young thief, and Fnor; however, I cannot find a way to capture the name Tom.
The following regexp trigger will capture Zombie, a young thief, and Fnor:
Now I thought I could modify it like this to capture Tom:
It does capture Tom, but now it also captures the parentheses all in the same wildcard.
Would anyone know how I could make a trigger to only capture the names from that list?
- (C) Zombie
- (I)(T)(G)(W) a young thief
- (R)(W) Fnor
- TomHowever, the problem is that there may be any number of (C), (I), (G), such things before the names. I've managed to capture the names such as Zombie, a young thief, and Fnor; however, I cannot find a way to capture the name Tom.
The following regexp trigger will capture Zombie, a young thief, and Fnor:
^ \- \((.+)\) (.*?)$Now I thought I could modify it like this to capture Tom:
^ \- (|\((.+)\) )(.*?)$It does capture Tom, but now it also captures the parentheses all in the same wildcard.
Would anyone know how I could make a trigger to only capture the names from that list?