I have written this macro:
N0 = getTitle(); //N means name
imageToSelectString1 = substring(N0, indexOf(N0,“Position”), lastIndexOf(N0," “+number+” "));
The idea is to retrieve from the title of my images the Position+number.
Name structure: Position+(space)+number+(space)+other letter…
But I have billions of images so I want imageJ to recognize any number so automatically takes the number from the title.
Can anyone help me with this code?