Once it detects a change it does a regex search for '(Weapon|Character)$' with 3 post-context which grabs a match object we can then use to build our output string array. I do this with an ugly piped expression, but it works and reorders the match to fit being exported into the s...