I have a series of template text (straight ascii, \w characters only) files with fields marked as %%field%%. Each field on a line will be unique but multiple fields may occur on a line.
What regex can I use to list all the field names on a line?
So far I have this working code but I'd be interested to see if there is a more general solution for n field names.