[Solved] How to add dots between every two digits of a six digit substring?


You want to use a replace technique (in whatever language/environment you are using) on your substrings by capturing like this:

(\d{2})(\d{2})(\d{2})

*note the curly brackets are for improved efficiency.

And replace with:

$1.$2.$3

Here is a demo link.

Here is a SO page discussing the execution of replacements on nano.

1

solved How to add dots between every two digits of a six digit substring?