For example , If My Input is : some text here 345 646 356 some text 235 5343 Output should be : some text here 345646356 some text 235 5343
In this case, it needs to remove spaces between numbers if length is 9. otherwise spaces should be as it is .
I have tried below command but it removes all the spaces between numbers if length is <9 or >9.
Input : my data is 345 245 254 and 454 356 34 and
Logic : final_value = re_replace( final_value , "((?<=\d) +(?=\d))" ,"");
Output : my data is 345245254 and 45435634 and
But I would need output as my data is 345245254 and 454 356 34 and