❔ Help with simple regex

How do I use regex replace to transform a string with four numbers to have dots between them? Like this:
1234 -> 1.2.3.4
3690 -> 3.6.9.0
Was this page helpful?