I have about 200 lines in text file values can be like And I am looking specific regex pattern for replace .number like ‘.1’ or ‘.8’ It’s working, but for value 1.5 it’s output is 10.5 and that’s wrong. Answer If all of your values are float or integer expressions, then you can use bluntly use “start of string followed