i am only practicing my regex so there is no real "question" as such. I don't want advising other NET methods can do this. This is all about me learning so please dont answer if it's not related to regex. Thank you.
I gave my self the task of matching duplicate words. I did this hard coding the word but asked my self what if we wanted ALL words. What i attempted to do was back reference into group One the first word and went from there. Been struggling all night.
An example word text format would be "The quick Brown Fox Jump over the Brown fence." As we can see The and Brown is repeated twice.
Expression:
(?i)(?<=\s*\1\.*)\s+(\w+)
Any tips or advice where i am going wrong is great. I got regex buddy fired up but still struggling. I am using VB.Net