I'm really curious if I can match an example and every time I found the repetition I increment the number. I try to visualize it on example. Let's say I have some data like this:
HashMap<String, Integer> map = new HashMap<>();
HashMap<String, Integer> map = new HashMap<>();
HashMap<String, Integer> map = new HashMap<>();
...
...
...
HashMap<String, Integer> map = new HashMap<>();
what I want to achieve is:
HashMap<String, Integer> map1 = new HashMap<>();
HashMap<String, Integer> map2 = new HashMap<>();
HashMap<String, Integer> map3 = new HashMap<>();
...
...
...
HashMap<String, Integer> map50 = new HashMap<>();
I'm working in InteliJ so I will use ctrl + shift + r
shortcut to replace string occurrences. Is there any kind of reg ex which can let me create the sequence?