Trevor,
Thanks again for the whole script skeleton!
(I must confess that my programming skills are just for minor grep holydays tasks)
It is a precious piece!
Not to mention free of charge, Vat, taxes, etc. and delivered in minutes, doar to doar.
And is very very fast!
60 tables were processed in 4-5 seconds.
I tried unsuccessfully to insert this line:
{
currentTable = app.selection[0].parent;
}
as now is changing all the number in the document but seems the instruction lacks a second command.
The Grep formula worked very good:
(?<=\\D)\\d{1,2},\\d{1,2}(?=\\D)
although it should rewritten without the double slash:
(?<=\D)\d{1,2},\d{1,2}(?=\D).
Camilo.