I have a line of text in a string that I need to replace part of it.
$OrgString = "BLUE ORIGIN CONTACT: MB"
$OrgString -replace 'CONTACT:'
I need to remove CONTACT: MB Keep in mind that the only thing that will be consistent in string will be CONTACT:. Everything else in the string will vary. Is there a way to do a -replace 'CONTACT:' plus a "number" of characters?
'BLUE ORIGIN 'is different than'BLUE ORIGIN'