I am attempting to split a text file using the PowerShell -split operator, but unable to figure out the expression.
example
this needs to be split into a total of 4 section e.g.
while the first 2 sections work as expected, the 3rd section can be text with spaces OR text with no spaces OR numbers of a variable length which does not work for me.
$c -split "(\d\d/\d\d/\d\d),\s(\d\d\:\d\d)\s\-\s*"
$c -split "(\d\d/\d\d/\d\d),\s(\d\d\:\d\d)\s\-\s(*\:\s)"
splits it into 3 and unable to split it into 4 as the * seems to override the 4th section
any suggestions how to fix this would be much appreciated