title: What is the best way to replace a portion of string with PowerShell -replace
body: <p>I was given some very long csv files and have been tasked with making the information in them readable. I want to turn time formats like <code>2022-08-07, 08:00:00</code> into a time format like <code>08/07/2022 8:00:00</code>. I was looking at wild cards and was going to start with replacing the dashes with slashes first and tried <code>-replace &quot;(....{-}..{-}..&quot;,&quot;\1/\2/\3/&quot;</code> with no change to the string. I found a similar post that mentioned some regex that can helped him achieve something similar? If anyone can help me out or point me to some resources to learn more about this that would be great.</p>