how to 'search & replace' with a simple calculation???
Submitted by Wednesday, 21 June, 2006 - 12:17
on
Hi!
I'm trying to search a file with reg-expression '\d' and I want to replace the values with a BeanShell snippet which adds a value to the search-string. When I try something like '_0+1' for a line in my file which looks like 'array[1]' I get an 'array[11]' an not what I want, an 'array[2]'.
What I'm doing wrong?
Thank You
I'm trying to search a file with reg-expression '\d' and I want to replace the values with a BeanShell snippet which adds a value to the search-string. When I try something like '_0+1' for a line in my file which looks like 'array[1]' I get an 'array[11]' an not what I want, an 'array[2]'.
What I'm doing wrong?
Thank You