Replace number in Netbeans editor with extension
I have some code in Netbeans 6.1 editor that looks like
fooString (8)
fooString (8)
fooString (8)
fooString (8)
foostring2 (8)
foostring3 (8)
foostring4 (8)
foostring5 (8)
foostring6 (8)
foostring7 (8)
foostring7 (9)
foostring7 (10)
foostring7 11)
foostring7 (12)
and I want to convert it to fooString (1)
fooString (2)
fooString (3)
fooString (4)
foostring2 (5)
foostring3 (6)
foostring4 (7)
foostring5 (8)
foostring6 (9)
foostring7 (10)
foostring7 (11)
foostring7 (12)
foostring7 (13)
foostring7 (14)
Is there a way, for example with regexes or something else, to make this work?
thanks
a source to share
Do you want to do this programmatically? If not, then I will do the following
- Use regex to insert a tab around the number, so (8) becomes (\ t8 \ t)
-
Copy this to an Excel sheet. The tab will order the numbers in a separate column, meaning excel will look something like this.
A B C foostring( 8 ) foostring1( 8 ) foostring2( 8 )
and etc.
-
Now change the values ββin column B. Just enter 1 and 2 in the first 2 rows and drag down to fill the row of rows.
-
Copy back to netbeans editor and delete the tabs you pasted in step 1.
a source to share