ConsoleWrite(StringRegExpReplace(StringRegExpReplace('172027003010', '^(\d{3})(\d{3})(\d{3})(\d{3})$', '${1}\.${2}\.${3}\.${4}'), '(?<=^|\.)0{0,2}', '') & @LF)
ConsoleWrite(StringRegExpReplace(StringRegExpReplace('127000000000', '^(\d{3})(\d{3})(\d{3})(\d{3})$', '${1}\.${2}\.${3}\.${4}'), '(?<=^|\.)0{0,2}', '') & @LF)
ConsoleWrite(StringRegExpReplace(StringRegExpReplace('002027003010', '^(\d{3})(\d{3})(\d{3})(\d{3})$', '${1}\.${2}\.${3}\.${4}'), '(?<=^|\.)0{0,2}', '') & @LF)