I have a regex but i am not able to interpret it: \w\1.
I thought it would match : aa since it had word a twice and first group would be a word for this regex. But its not behaving in this manner.
Does back referencing work only if we place parentheses around regex ?
Any help would be appreciated. Thanks.
\w\1? That's the whole regex? Are you sure this is Java?