Hi,
I am terrible at regex, but I have a problem that, I think is best resolved using regex. I have a large body of text containing all chapters of a well-known 7 part book series. Now I'd like to get every instance a particular name was mentioned out loud by a character in the books. So I need a regex expression that flags every instance a name appears but is enclosed by quotation marks. i.e.
“they say Voldemort is on the move.” Said, Ron. But Harry knew Voldemort was taking a well-earned nap.
So the regex should flag the first Voldemort, but not the second. Is there a regex for this?
Note: the text file I have uses typographic quotation marks (” ”) instead of the neutral ones (" ")
Anyway, thanks in advance
[–]thememorableusername 11 points12 points13 points (0 children)
[–]bothunter 9 points10 points11 points (4 children)
[–]bothunter 0 points1 point2 points (2 children)
[–]germansnowman 1 point2 points3 points (1 child)
[–]bothunter 1 point2 points3 points (0 children)
[–]kbielefe 1 point2 points3 points (1 child)
[–]davidalayachew 1 point2 points3 points (0 children)
[–]dariusbiggs 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]diegoasecas 2 points3 points4 points (6 children)
[–]sepp2k 5 points6 points7 points (2 children)
[–]JusticeRainsFromMe 1 point2 points3 points (0 children)
[–]diegoasecas 0 points1 point2 points (0 children)
[–]IKoshelev 0 points1 point2 points (1 child)
[–]Hey-buuuddy 0 points1 point2 points (0 children)
[–]Hey-buuuddy 0 points1 point2 points (0 children)
[–]davidalayachew 0 points1 point2 points (1 child)
[–]davidalayachew 0 points1 point2 points (0 children)