I have a patten like the one below, I need to search each field and replace the caracter if it meets a criteria
for example on line 1 below ,I'll search for a 1 , I'll check if its euqal to 1 ,if yes,don't do anything if not, replace the character with a "X" .
I also will leave the leading and trainling "." alone but replace the intermediate "."s with an "X"
Any help is much appreciated
. . . . . . . . . . . . 2 7 9 9 2 3 . . . . . . . . . . . .
. . . . . . . . . 2 . 9 9 . 9 1 . 1 1 . 1 . . . . . . . . .
. . . . . . . . 1 1 . 9 2 . 1 1 . 1 1 . 1 1 . 3 . . . . . .
. . . . . . 8 2 1 9 9 1 1 1 1 1 9 9 9 1 1 9 1 1 1 . . . . .
. . . . . 7 9 9 9 1 1 1 1 9 9 1 1 1 1 1 1 1 9 1 1 1 . . . .
for example on line 1 below ,I'll search for a 1 , I'll check if its euqal to 1 ,if yes,don't do anything if not, replace the character with a "X" .
I also will leave the leading and trainling "." alone but replace the intermediate "."s with an "X"
Any help is much appreciated
. . . . . . . . . . . . 2 7 9 9 2 3 . . . . . . . . . . . .
. . . . . . . . . 2 . 9 9 . 9 1 . 1 1 . 1 . . . . . . . . .
. . . . . . . . 1 1 . 9 2 . 1 1 . 1 1 . 1 1 . 3 . . . . . .
. . . . . . 8 2 1 9 9 1 1 1 1 1 9 9 9 1 1 9 1 1 1 . . . . .
. . . . . 7 9 9 9 1 1 1 1 9 9 1 1 1 1 1 1 1 9 1 1 1 . . . .