Problem finding what I want :)
Submitted by Thursday, 23 September, 2010 - 15:07
on
Hello
I would like to search for the following expression in the text file:
$123 1
Of course the command for this is SearchAndReplace.setSearchString("$123 1");
And it works.
The problem is - that the "123" part of this string is random. So what I really need to find is the first "$", ignore the next 3 digits, find 1 space and finally find "1".
How to create a search command to ignore that "123", or "243" or whatever it may be?
For example if I want to list the file 123AA.txt, I simply put the command "dir ???AA.txt". Is that possible when using BeanShell?
Thanks for advice
Z.
I would like to search for the following expression in the text file:
$123 1
Of course the command for this is SearchAndReplace.setSearchString("$123 1");
And it works.
The problem is - that the "123" part of this string is random. So what I really need to find is the first "$", ignore the next 3 digits, find 1 space and finally find "1".
How to create a search command to ignore that "123", or "243" or whatever it may be?
For example if I want to list the file 123AA.txt, I simply put the command "dir ???AA.txt". Is that possible when using BeanShell?
Thanks for advice
Z.