Team,
I have a file in Windows where the content is like the below:
460 ls
461 cd ..
462 ls
463 cd ubuntu/
464 ls
465 cd test/
466 ls
467 cd ..
468 openvpn
I want to remove all the numbers which are present in the beginning and get the actual content.
I have tried :
$var= Get-Content C:\Scripts\test.txt
$var.replace("/[4 6]/","");
$var.replace("/[4 6]/","");
($var.replace("4","")).Replace("6","")
But is it possible to get some regular expression solution for this.

$var -replace '^[\s\d]+',''?$var -replace '^[\s\d]+'(no need to add the second argument with-replaceif it's a removal)