Sezer, here is an easy way to do it in Notepad++
- In the Replace tab, make sure you check the "Regular Expression" box at the bottom left
- Search:
(^\w+\[(\d+)\]=[^;]+;\w+\[)[^]]+
- Replace:
\1\2
or$1$2
(depending on your locale, you may have to choose one or the other.) - Hit "Replace All"
Note that this will work for two variables on the same line, regardless of their name, for instance firstvar[10]="asfa";somevar[x]="asdfas";
If you want to replace only when the first variable is called kelimeler, change the search to:
(^kelimeler\[(\d+)\]=[^;]+;\w+\[)[^]]+
If you want to replace only when the first variable is called kelimeler and the second variable is called specialvar, use:
(^kelimeler\[(\d+)\]=[^;]+;specialvar\[)[^]]+