Text file: change date format

Hi @d_liberati

Try this

System.Text.RegularExpressions.Regex.Replace("20.12.2021", "(\d{2})\.(\d{2})\.(\d{4})", "$1/$2/$3")

for whole text use

System.Text.RegularExpressions.Regex.Replace(fullTextString, "(\d{2})\.(\d{2})\.(\d{4})", "$1/$2/$3")
1 Like