In a text file, I use a find to filter the following selection
getEnvReadinessConfirmed(
getVersionAvailable(
(I use get\w*\( to do this)
Is there any way I could duplicate the word after its occurrence as in
getEnvReadinessConfirmed(getEnvReadinessConfirmed(
getVersionAvailable(getVersionAvailable(
I am looking at http://www.nncron.ru/help/EN/add_info/regexp.htm, specifically at
{n,} To repeat n or more times
for some hints but unable to get anything working.
Hopefully I am not doing anything terribly stupid but here is the screenshot


Greatly appreciate any pointer.
You can use a backreference
See it working on Rubular
Here it is working in Sublime Text 2 (per your question tag).
(get\w+\()\1in the Search fieldHere’s how to do a Find/Replace using regex
before
after