https://regex101.com/r/rnr6SC/2
I am writing a regex to find any instances of words that start with & and end with ;. There could be multiple copies on the same line, on different lines, or whatever. I just want to find anything that looks like
&
&dog;
&cat; and &dog;
or similar. I think my check for the ; is too greedy in my example. How do I fix my regex to find the specific words I need without selecting anything else?